Closed jerabekjiri closed 10 months ago
This base profile fails because pip can't find pulp-container
, as the package is installed in the pip3 repository.
I have found on the galaxy_ng side where we do switch_python 3.11
that using pip3 or pip3.11 directly doesn't abide by the python versioned site-packages directory you might expect it to. For example, pip3 install or pip3.11 install will end up in python3.8's site-packages. However, /usr/bin/python3.11 -m pip ...
will do the right thing. In all of the galaxy side profile scripts, i've changed them to use the python command instead of directly using pip. We should try to figure out how to make that happen for this script in oci-env also, but I suppose we can let this one in for now.
@jctanner, I can switch to /usr/bin/python3.11 -m pip
instead of using the pip3 command directly for this PR. I don't think it would be a problem in this case?
[noissue]
Python packages get installed in different repositories. pip installs repositories to Python 3.8 repository, while pip3 installs to Python 3.11.
When running
oci-env generate-client -i
oroci-env test -i -p pulp_ansible functional
, requirements and packages are installed in different repositories and don't see each other.Adding pip3 ensures that it gets installed for Python 3.11.
The pip command defaults to Python 3.8, while pip3 defaults to Python 3.11.
(we could do
pip3.11
, but this could break for older versions, since they don't have python 3.11)