-
Notifications
You must be signed in to change notification settings - Fork 3k
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
#10560 Broke python.exe pip.whl/pip install
#11146
Comments
If I recall correctly, this was mentioned in the initial fix (not that PR which fixed the fix) and decided to be an unfortunate compromise. Running pip directly from wheel was never an officially supported operation. |
Yeah, this is an esoteric execution mode: I understand not wanting to support it. FWIW this broke python-build-standalone, which used this method because it was robust in the face of cross-compiling. See indygreg/python-build-standalone@cd2a0ff. According to my commit message, I borrowed the idea from Thanks for your feedback. |
Actually In the meantime, an alternative is to use |
FWIW it appears |
pip 22.1.1 broke the old `python.exe pip.wheel/pip install` invocation. See pypa/pip#11146.
Description
#10560 broke
python.exe /path/to/pip.whl/pip install
on Windows.I believe this is a side-effect of using
os.path.basename(sys.argv[0]) == "pip"
to attempt to check for directpip
invocations. Unfortunately, the new logic fails to handle the special case wherepython <wheel>/<module>
can execute a module in a wheel file.The
python <wheel>/<module>
syntax and behavior inside the interpreter with respect tosys.argv
is a bit wonky. And using this syntax is probably an edge case. While I think the new behavior is incorrect, I'm unsure whether it is worth anyone's time to fix.Expected behavior
python.exe /path/to/pip.whl/pip
should work.pip version
22.1.1
Python version
3.8-3.10
OS
Windows
How to Reproduce
python pip.whl/pip install
Output
The text was updated successfully, but these errors were encountered: