-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failling with custom versioning for python package. #46
Comments
Hi @MrLixm, thanks for opening this issue! It's an interesting us case that I haven't put a lot of thought into. I started to think about the package name but not the version. I was thinking of potentially adding a way to configure the package name and allowing to use rez-pip with PyPy, Jython (and all the other python implementations). And I think it would be valid to also support custom version schemes. We could do that by adding a I'll need some time to think about it. Or all the options I mentioned, do you prefer one over the other? |
Cool to know it's in your plans. |
Just for brainstorming, maybe we could introduce some
The idea would be to "provide" the python interpreter through this EDIT: see the following comments as this idea is forgetting rez-pip2 loops through several python version |
Agree with the above suggestion, the command looks clear and its nice to specify a python package that is not named workaroundFor now I have been trying to find a workaround that would allow me to use
traceback (note that I'm using python version `3.10.11` but its the same logic)rez python -m rez_pip pytest --python-version 3.10.11
INFO Installing requested packages for Python 3.10.11
INFO Resolved 7 dependencies for python 3.10.11
INFO Downloading...
INFO Downloaded tomli-2.0.1 to
'C:\\Users\\lcoll\\AppData\\Local\\Temp\\rez-pip-targetwfoay1r9\\wheels\\tomli-2.0.1-py
3-none-any.whl' (12757 bytes)
INFO Downloaded iniconfig-2.0.0 to
'C:\\Users\\lcoll\\AppData\\Local\\Temp\\rez-pip-targetwfoay1r9\\wheels\\iniconfig-2.0.
0-py3-none-any.whl' (5892 bytes)
INFO Downloaded pluggy-1.3.0 to
'C:\\Users\\lcoll\\AppData\\Local\\Temp\\rez-pip-targetwfoay1r9\\wheels\\pluggy-1.3.0-p
y3-none-any.whl' (18934 bytes)
INFO Downloaded colorama-0.4.6 to
'C:\\Users\\lcoll\\AppData\\Local\\Temp\\rez-pip-targetwfoay1r9\\wheels\\colorama-0.4.6
-py2.py3-none-any.whl' (25335 bytes)
INFO Downloaded pytest-7.4.2 to
'C:\\Users\\lcoll\\AppData\\Local\\Temp\\rez-pip-targetwfoay1r9\\wheels\\pytest-7.4.2-p
y3-none-any.whl' (324497 bytes)
INFO Downloaded packaging-23.2 to
'C:\\Users\\lcoll\\AppData\\Local\\Temp\\rez-pip-targetwfoay1r9\\wheels\\packaging-23.2
-py3-none-any.whl' (53011 bytes)
INFO Downloaded exceptiongroup-1.1.3 to
'C:\\Users\\lcoll\\AppData\\Local\\Temp\\rez-pip-targetwfoay1r9\\wheels\\exceptiongroup
-1.1.3-py3-none-any.whl' (14710 bytes)
INFO Downloaded 7 wheels
INFO Installing pytest-7.4.2 wheel
INFO Installing exceptiongroup-1.1.3 wheel
INFO Installing pluggy-1.3.0 wheel
INFO Installing tomli-2.0.1 wheel
INFO Installing colorama-0.4.6 wheel
INFO Installing iniconfig-2.0.0 wheel
INFO Installing packaging-23.2 wheel
INFO Creating rez package for pytest
INFO Created 0 variants and skipped 1
INFO Creating rez package for exceptiongroup
INFO Created 0 variants and skipped 1
INFO Creating rez package for pluggy
INFO Created 0 variants and skipped 1
INFO Creating rez package for tomli
INFO Created 0 variants and skipped 1
INFO Creating rez package for colorama
INFO Created 0 variants and skipped 1
INFO Creating rez package for iniconfig
INFO Created 0 variants and skipped 1
INFO Creating rez package for packaging
INFO Created 0 variants and skipped 1
INFO Installing requested packages for Python 3.10.11.1
Usage:
pip.pyz install [options] <requirement specifier> [package-index-options] ...
pip.pyz install [options] -r <requirements file> [package-index-options] ...
pip.pyz install [options] [-e] <vcs project url> ...
pip.pyz install [options] [-e] <local project path> ...
pip.pyz install [options] <archive url/path> ...
--python-version error: invalid --python-version value: '3.10.11.1':
at most three version parts are allowed
rez_pip.exceptions.PipError: Failed to run pip command: 'z:\\rez\\packages\\python\\3.10.11.1\\platform-windows\\arch-amd64\\python.exe c:\\program files\\rez\\lib\\site-packages\\rez_pip\\data\\pip.pyz install -q pytest --disable-pip-version-check --dry-run --ignore-installed --python-version=3.10.11.1 --only-binary=:all: --target=/tmp/asd --disable-pip-version-check --report C:\\Users\\lcoll\\AppData\\Local\\Temp\\pip-install-outputvunb5mzi' EDIT: I did not understood that rez-pip was finding all version matching |
I forgot about rez-pip2 looping through several python versions as well, so the idea of a Example: "loops through maya 2022 to 2023 packages, and map 2022.x version to 3.7.7 and 2023.x versions to 3.9.7". That's probably not trivial to implement. |
Mmmh unless the package providing python has a custom attribute like you both previously mentionned: assuming all In this scenario, the |
the intention is to try to provide as low-level function as possible for a library-use This new function should also provide a workaround for JeanChristopheMorinPerso#46
Hello, my issue is related to my workflow so I don't except much, but reporting in case it can be of any use.
traceback
reason
I am using a custom versioning schema for all vendor packages by appending an additional version token. Example a
python-3.9.13
can becomepython-3.9.13.1
.It seems that
rez-pip
has no issue by founding my python version, thoughpip
of course doesn't like the non-standard version and fail.potential-fix
context
The text was updated successfully, but these errors were encountered: