Disallow execution of setup.py when "pip download --no-deps someproject" #7325
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: duplicate
Duplicate of an existing issue/PR
type: enhancement
Improvements to functionality
There appears to be no way to download an sdist without eagerly executing setup.py file. It would be nice to have a "pip download" command that can take advantage of pip's caching layer, custom index config, handling of requirement specifiers and/or environment markers, without accidentally running Python code that could mistakenly think it is going through an installation, may crash due to missing build dependencies, or may even contain malicious code.
pip download --no-deps issue7325
could just get theissue7325-0.1.tar.gz
file to current working directory, there's no need to run command egg_info since pip doesn't use the egg_info for anything as far as I can tell..An example sdist to reproduce the issue:
The text was updated successfully, but these errors were encountered: