confused why rez-pip creates python variant #1425
Unanswered
keith-lackey-steamroller-tech
asked this question in
Q&A
Replies: 1 comment 2 replies
-
pymongo indeed states 3.7+ as a requirement, that does include 3.11 though and 3.11 is indeed that newest supported version. As pymongo contains binary components they need to provide different wheels for different python versions as they are not ABI compatible. These are also added to the variants and not requires to allow having the same version of pymongo for different python versions as variants. If you want to add a version for a specific python version you need to tell rez-pip by supplying |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When doing a rez-pip install it seems to make a variant that includes the current python version.
For example:
rez-pip --install pymongo
I end up with something like this in my package.py
variants = [ ['platform-windows', 'arch-64bit', 'python-3.11.1'] ]
Python 3.11.1 just happens to be the version of Python that was running whenever it was installed but it is not what version the package is compatible with.
If you look look at their PyPi page it states that it requires python-3.7+ which would suggest that it would be compatible with any version going back to Python 3.7
https://pypi.org/project/pymongo/
The funny thing is that the requires is missing Python completely.
requires = ['dnspython-1.16.0+<3.0.0']
I would assume that the Python version would not be included in the variant and that it would be part of the requirements instead.
Is this assumption correct?
Should I be using the results of the
rez-pip
as a jumping off point for the package and reorganizing it once its been created?Is there a better way to control this?
Or am I missing altogether?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions