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

   > I think there's something a little more subtle going on, because I don't 
need `python3-devel` on my F38 machine:
   > 
   > ```
   > [jpeach@sk1 tests]$ pipenv --rm
   > Removing virtualenv 
(/home/jpeach/.local/share/virtualenvs/tests-U2EyhSHq)...
   > [jpeach@sk1 tests]$ sudo dnf remove python3-devel
   > No match for argument: python3-devel
   > No packages marked for removal.
   > Dependencies resolved.
   > Nothing to do.
   > Complete!
   > [jpeach@sk1 tests]$ which python3-config
   > /usr/bin/which: no python3-config in 
(/home/jpeach/bin:/home/jpeach/go/bin:/home/jpeach/bin:/home/jpeach/go/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
   > [jpeach@sk1 tests]$ pipenv install
   > Creating a virtualenv for this project...
   > Pipfile: /home/jpeach/src/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 156ms
   >   creator Venv(dest=/home/jpeach/.local/share/virtualenvs/tests-U2EyhSHq, 
clear=False, no_vcs_ignore=False, global=False, describe=CPython3Posix)
   >   seeder 
FromAppData(extra_search_dir=/usr/share/python-wheels,download=False, 
pip=bundle, setuptools=bundle, wheel=bundle, via=copy, 
app_data_dir=/home/jpeach/.local/share/virtualenv)
   >     added seed packages: pip==22.3.1, setuptools==65.5.1, wheel==0.38.4
   >   activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
   > 
   > ✔ Successfully created virtual environment!
   > Virtualenv location: /home/jpeach/.local/share/virtualenvs/tests-U2EyhSHq
   > 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.
   > ```
   
   Is it possible you installed the packages locally with python3-devel before 
this experiment with python3-devel removed? If so, then the subsequent pipenv 
install will work, even with python3-devel removed, because those dependencies 
will have been built already from the previous run. As I demonstrated above, a 
clean system without python3-devel will fail installing the autest package on 
an initial run (likely because of at least the psutil package). You can 
reproduce the experiment yourself with the docker steps I outlined above.


-- 
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