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

find_pip_from_context failing on Windows platform #796

Closed
theceebee opened this issue Nov 10, 2019 · 3 comments · Fixed by #798
Closed

find_pip_from_context failing on Windows platform #796

theceebee opened this issue Nov 10, 2019 · 3 comments · Fixed by #798
Assignees
Labels
bug os:windows Windows-specific rez-pip ingesting py pkgs into rez (pip, wheels, etc)

Comments

@theceebee
Copy link

The recent changes to the rez pip module have broken pip installs on Windows,

https://github.com/nerdvegas/rez/blob/6db191f4aa01903e22955cf38e8342cb8697a499/src/rez/pip.py#L162

When doing a context.which call to find the python executable the major version token is being appended to 'python' which on Windows returns None.

This causes an issue with the subsequent subprocess call which attempts to find a pip install.

@JeanChristopheMorinRodeoFX
Copy link
Contributor

JeanChristopheMorinRodeoFX commented Nov 11, 2019

Hi @theceebee , thanks for the report. I'm the one who changed this part of the code but I only work in OSX and Linux. I'm being told by @instinct-vfx that the executable with a version in its name on Windows only exists in Python 3. 😐 Someone (me or @instinct-vfx probably) will create a PR shortly to fix this.

@theceebee
Copy link
Author

Fantastic. I'll keep an eye out.

@JeanChristopheMorinPerso
Copy link
Member

@theceebee If you want to test, you can test with #798 . Just checkout and install and see how it goes.

@JeanChristopheMorinPerso JeanChristopheMorinPerso added rez-pip ingesting py pkgs into rez (pip, wheels, etc) os:windows Windows-specific bug labels Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug os:windows Windows-specific rez-pip ingesting py pkgs into rez (pip, wheels, etc)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants