-
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 download --no-index
not recording version with VCS url.
#12333
Comments
When you do this, you're opting to create the build environment yourself and running pip in that context. IIUC, pytest gets the version via setuptools-scm which isn't installed in your environment and you're hitting pypa/setuptools#2329 (which takes lack of version to mean 0.0.0). Closing this since this isn't really a pip issue, and is what pypa/setuptools#3511 is about. |
@pradyunsg Should pip and/or pyproject-hooks be silently launching the build backend without checking that the declared
That would also help other scenarios where the missing dependency will affect file discovery or other behaviors that also have fallback behaviors when the plugin is not present. It doesn't seem feasible in general for the backend to detect that a declared dependency wasn't supplied, and while adding a requirement to fail if a version couldn't be detected would address this case, it wouldn't address the more general problem of detecting that a declared plugin's behavior wasn't provided. I know historically, |
Description
Using
pip download
with a VCS url for a Pep517 project and the--no-index --no-build-isolation
flags results in the saved archive not having a correct version number appended.Running the same command without the flags saves a correctly versioned archive.
Expected behavior
when using
pip download
with VCS urls,--no-index
should not affect the name of the saved archive.pip version
23.2.1
Python version
3.9.16
OS
macOS 13.5.2
How to Reproduce
pip download --no-index --no-build-isolation --dest . --no-deps git+https://github.com/pytest-dev/pytest.git
pip download --dest . --no-deps git+https://github.com/pytest-dev/pytest.git
Output
pytest-0.0.0.zip
pytest-8.0.0.dev275+g2401d766.zip
Code of Conduct
The text was updated successfully, but these errors were encountered: