bneradt commented on PR #9910:
URL: https://github.com/apache/trafficserver/pull/9910#issuecomment-1605771354

   @JosiahWI was correct with this comment:
   https://github.com/apache/trafficserver/pull/9891#issuecomment-1600603785
   
   The need for python3-devel can be demonstrated using our CI's fedora:38 
docker image like so:
   
   ```sh
   ╰─➤  docker run --rm -it ci.trafficserver.apache.org/ats/fedora:38 /bin/bash
   [root@a4b15951163d ~]# cd /var/tmp
   [root@a4b15951163d tmp]# git clone 
https://github.com/apache/trafficserver.git
   ...
   [root@a4b15951163d tmp]# cd trafficserver/tests/
   
   # Remove python3-devel before installing the pipenv.
   [root@a4b15951163d tests]# sudo dnf remove -y python3-devel
   ...
   Removed:
     python3-devel-3.11.3-2.fc38.aarch64                                        
                             python3-packaging-23.0-1.fc38.noarch               
                                                      
python3-rpm-generators-14-4.fc38.noarch                                         
                           
   
   Complete!
   
   # Now try to install. Notice that the autest dependencies cannot be built 
due to the lack of the Python3 dev header.
   [root@a4b15951163d tests]# pipenv install
   Creating a virtualenv for this project...
   Pipfile: /var/tmp/trafficserver/tests/Pipfile
   Using /usr/bin/python3 (3.11.3) to create virtualenv...
   ⠙ Creating virtual environment...created virtual environment 
CPython3.11.3.final.0-64 in 175ms
     creator CPython3Posix(dest=/root/.local/share/virtualenvs/tests-HYg0op0j, 
clear=False, no_vcs_ignore=False, global=False)
     seeder FromAppData(download=False, pip=bundle, setuptools=bundle, 
wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
       added seed packages: pip==23.1.2, setuptools==67.8.0, wheel==0.40.0
     activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
   
   ✔ Successfully created virtual environment!
   Virtualenv location: /root/.local/share/virtualenvs/tests-HYg0op0j
   Pipfile.lock not found, creating...
   Locking [packages] dependencies...
   Building requirements...
   Resolving dependencies...
   ✔ Success!
   Locking [dev-packages] dependencies...
   Building requirements...
   Resolving dependencies...
   ✔ Success!
   Updated Pipfile.lock 
(3094ee8b548fecf9988a8ccede4c1953ffb4925980fddb241c9f254eb85beb05)!
   Installing dependencies from Pipfile.lock (5beb05)...
   An error occurred while installing attrs==23.1.0 ; python_version >= '3.7' 
--hash=sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04 
--hash=sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015! 
Will try again.
   An error occurred while installing autest==1.10.2 
--hash=sha256:ec26de605853e04425918d26073fa26d58bec9f785cb35542ed1a4ee2b111f73! 
Will try again.
   ...
   
   # Now repeat with python3-devel installed
   [root@a4b15951163d tests]# pipenv --rm
   Removing virtualenv (/root/.local/share/virtualenvs/tests-HYg0op0j)...
   [root@a4b15951163d tests]# sudo dnf install -y python3-devel
   ...
   Installed:
     python3-devel-3.11.3-2.fc38.aarch64                                        
                             python3-packaging-23.0-1.fc38.noarch               
                                                      
python3-rpm-generators-14-4.fc38.noarch                                         
                           
   
   Complete!
   
   # Now everything is happy.
   [root@a4b15951163d tests]# pipenv install
   Creating a virtualenv for this project...
   Pipfile: /var/tmp/trafficserver/tests/Pipfile
   Using /usr/bin/python3 (3.11.3) to create virtualenv...
   ⠋ Creating virtual environment...created virtual environment 
CPython3.11.3.final.0-64 in 88ms
     creator CPython3Posix(dest=/root/.local/share/virtualenvs/tests-HYg0op0j, 
clear=False, no_vcs_ignore=False, global=False)
     seeder FromAppData(download=False, pip=bundle, setuptools=bundle, 
wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
       added seed packages: pip==23.1.2, setuptools==67.8.0, wheel==0.40.0
     activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
   
   ✔ Successfully created virtual environment!
   Virtualenv location: /root/.local/share/virtualenvs/tests-HYg0op0j
   Installing dependencies from Pipfile.lock (5beb05)...
   To activate this project's virtualenv, run pipenv shell.
   Alternatively, run a command inside the virtualenv with pipenv run.
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to