Skip to content
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

rez-pip reinstalls numpy everytime #58

Open
JeanChristopheMorinPerso opened this issue Oct 14, 2023 · 1 comment
Open

rez-pip reinstalls numpy everytime #58

JeanChristopheMorinPerso opened this issue Oct 14, 2023 · 1 comment

Comments

@JeanChristopheMorinPerso
Copy link
Owner

(.venv) [jcmorin@arch01 rez-pip]$ REZ_PACKAGES_PATH=~/rez_packages:/tmp/asd rez-pip2 numpy -p /tmp/asd --python-version 3.9
INFO     Installing requested packages for Python 3.9.18                                                                                                                                 
INFO     Resolved 1 dependencies for python 3.9.18                                                                                                                                       
INFO     Downloading...                                                                                                                                                                  
INFO     Downloaded numpy-1.26.0 to '/tmp/rez-pip-targetf1fombqc/wheels/numpy-1.26.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl' (18185894 bytes)                          
INFO     Downloaded 1 wheels                                                                                                                                                             
INFO     Installing numpy-1.26.0 wheel                                                                                                                                                   
INFO     Creating rez package for numpy                                                                                                                                                  
INFO     Installing numpy-1.26.0 [platform-linux, arch-x86_64, python-3.9]                                                                                                               
INFO     Created 1 variants and skipped 0

                                                                                                                                          
(.venv) [jcmorin@arch01 rez-pip]$ REZ_PACKAGES_PATH=~/rez_packages:/tmp/asd rez-pip2 numpy -p /tmp/asd --python-version 3.9
INFO     Installing requested packages for Python 3.9.18                                                                                                                                 
INFO     Resolved 1 dependencies for python 3.9.18                                                                                                                                       
INFO     Downloading...                                                                                                                                                                  
INFO     Downloaded numpy-1.26.0 to '/tmp/rez-pip-targetxiwjbwt3/wheels/numpy-1.26.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl' (18185894 bytes)                          
INFO     Downloaded 1 wheels                                                                                                                                                             
INFO     Installing numpy-1.26.0 wheel                                                                                                                                                   
INFO     Creating rez package for numpy                                                                                                                                                  
INFO     Installing numpy-1.26.0 [platform-linux, arch-x86_64, python-3.9]                                                                                                               
INFO     Created 1 variants and skipped 0

I have no idea why it gets re-installed.

@JeanChristopheMorinPerso
Copy link
Owner Author

A little bit more debugging, the description field seems to be the culprit...

diff --git a/existing b/new
--- a/existing
+++ b/new
@@ -1 +1 @@
   - help with outreach and onboard new contributors  - write grant proposals and help with other fundraising efforts  ! For more information about the ways you can contribute to NumPy, 
 -visit [our website](https://numpy.org/contribute/).  If you’re unsure where to start or how your skills fit in, reach out! You can  ask on the mailing list or here, on GitHub, by 
 +visit [our website](https://numpy.org/contribute/).   If you’re unsure where to start or how your skills fit in, reach out! You can  ask on the mailing list or here, on GitHub, by 
  opening a new issue or leaving a  comment on a relevant issue that is already open.

Somehow, sometimes the description isn't correctly written or something like that. Actually, it's either the input description that changes, or rez reformats the string in a weird way in memory just before it's written out, or rez reformats the text in a weird way when it writes it in the package definition file.

So the bug isn't on rez-pip's side.

And obviously, it's inconsistent...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant