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

pip wheel --find-links --no-index fails if package has pyproject.toml #5511

Closed
asottile opened this issue Jun 16, 2018 · 4 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@asottile
Copy link
Contributor

Environment

  • pip version: 10.0.1
  • Python version: 3.6.5
  • OS: macos (also ubuntu bionic)

Description

pip wheel --no-index --find-links file:///... cannot build a wheel if a project contains a pyproject.toml file.

Expected behavior

It should be able to, I suspect this is related to the PEP518 work, though in this specific case there are no PEP518 specifiers in this pyproject.toml.

How to Reproduce

pip download --no-deps --no-binary :all: aiohttp==2.3.1
pip wheel --no-deps --no-index --find-links "file://$PWD" aiohttp 2.3.1

Output

$ pip wheel aiohttp==2.3.1 --find-links file://$PWD --no-index --no-deps
Looking in links: file:///private/tmp/t
Collecting aiohttp==2.3.1
  Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools

Here are the contents of the pyproject.toml at v2.3.1

My workaround for now is to remove --no-index, though ideally I want that assertion.

@benoit-pierre
Copy link
Member

You can disable build isolation with --no-build-isolation.

@pradyunsg
Copy link
Member

Indeed. The rest of this issue basically #5416.

@asottile
Copy link
Contributor Author

This is an exact duplicate of #5402

@lock
Copy link

lock bot commented Jun 2, 2019

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.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants