-
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
pip install wheel vs python -m pip install wheel differing compliance for PEP 508 #5768
Comments
The difference in behaviour between |
Please check |
|
I still don't see how you could get different behaviours... Can you past the complete output of running both commands with I would expect both invocations to fail because of pypa/wheel#249, since the generated wheel metadata is going to be invalid. You can check with: > unzip -p dist/package-0.1-py3-none-any.whl '*/METADATA'
Metadata-Version: 2.1
Name: package
Version: 0.1
Summary: package
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: [email protected]
License: UNKNOWN
Platform: UNKNOWN
Requires-Dist: dependency
UNKNOWN As you can see, the direct URL part of the requirement has been stripped. Note: there's a dependency project on PyPI, so not a great choice for test data. |
hmm, interesting. The deps are definitely missing
Here's the output: The strangest part is that if I cd into the parent directory and run the 'python -m pip command it fails as expected' I can try out your PR and see if it generates the correct manifest |
If I install your wheel PR, it seems to fix the wheel. So at this point the ticket is highlighting a difference where python -m pip install package.whl may be reading the setup.py from the current directory? |
Yeah, it's because the current directory gets added to
|
It does not read |
So it is a duplicate of #5736, and will be fixed once pypa/wheel#249 is taken care of. Thanks for testing by the way! |
Ah, that makes sense. Thanks for pushing for PEP508 support, it's making my life much easier 👍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Environment
Description
Package with
"package@http://remote/package.whl"
in install_requires only installs correctly withpython -m pip install ${result_of_bdist_wheel}
Running
pip install ${result_of_bdist_wheel}
exits with an error:Expected behavior
Installing this wheel should have the same dependency lookup with
python -m pip install
vspip install
How to Reproduce
pip install git+https://github.com/pypa/pip.git@531be4f8863b96e168e8780aeea025b706658268
or
pip install git+https://github.com/pypa/pip.git
The text was updated successfully, but these errors were encountered: