-
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
Build dependencies with no binary wheels don't work #5229
Comments
Hey @pv! This is a known limitation of the current implementation of PEP 518 in pip 10 -- see https://pip.pypa.io/en/stable/reference/pip/#pep-518-support. |
I only looked if you had open issues about the problem, and did not find such issues on this tracker. |
Would it somehow be possible for pip to fall back to the "old" way (as if there would be no pyproject.toml file present) if this is failing? Because now this also makes that you cannot install with pip on platforms for which no wheels are available. |
Yes. Just pass the |
I actually was wondering if pip could do this automatically (given the limited support for pyproject.toml), but I suppose from the point of view of pip you will say that this is the responsibility of the user to specify it? |
How can I pass |
Try |
Yes, this flag worked. Thanks @pfmoore |
From: pypa/pip#5229 To avoid failure with Python 3.6: Downloading https://files.pythonhosted.org/packages/c1/36/c31a6ce9411b22a8ac0759c9b5ffda09368d5e0643450bb8ed83c271588c/PyGObject-3.32.1.tar.gz (698kB) Could not find a version that satisfies the requirement pycairo (from versions: ) No matching distribution found for pycairo
From: pypa/pip#5229 To avoid failure with Python 3.6: Downloading https://files.pythonhosted.org/packages/c1/36/c31a6ce9411b22a8ac0759c9b5ffda09368d5e0643450bb8ed83c271588c/PyGObject-3.32.1.tar.gz (698kB) Could not find a version that satisfies the requirement pycairo (from versions: ) No matching distribution found for pycairo
From: pypa/pip#5229 To avoid failure with Python 3.6: Downloading https://files.pythonhosted.org/packages/c1/36/c31a6ce9411b22a8ac0759c9b5ffda09368d5e0643450bb8ed83c271588c/PyGObject-3.32.1.tar.gz (698kB) Could not find a version that satisfies the requirement pycairo (from versions: ) No matching distribution found for pycairo
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. |
Description:
When installing dependencies given in
pyproject.toml
, pip does not seem to consider sdists on Pypi, only binary wheels.That it only looks for binary wheels is not immediately expected, and does not seem to be mentioned in PEP 518. I think the correct behavior is that sdists are considered (although perhaps only if there are no binary wheels available).
What I've run:
The following is a reproducing shell script
When I run this, I get
I would have expected this would succeed in installing the build dependencies. (And fail when it tries to run the setup.py --- in my real use I of course have a working setup.py but the behavior is the same).
If the version number is changed to e.g.
numpy==1.11.3
for which Numpy has binary wheels on PyPi, it works as expected.The text was updated successfully, but these errors were encountered: