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

option to only parse declarative dependency specifications (eg not execute setup.py) #891

Open
graingert opened this issue Sep 12, 2019 · 3 comments
Labels
awaiting response Awaiting response from a contributor feature Request for a new feature needs discussion Need some more discussion

Comments

@graingert
Copy link
Member

graingert commented Sep 12, 2019

Currently when executing pip-compile you are forced to download and execute untrusted python code (setup.py), however it's possible to determine dependency versions without executing setup.py for wheel packages and those using setup.cfg declarative metadata https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files

There should be an option to only parse dependencies from declarative sources eg wheel and setup.cfg. and never execute any "setup.py" files

@atugushev atugushev added the feature Request for a new feature label Sep 15, 2019
@atugushev
Copy link
Member

Hello @graingert,

Is there an option in pip to achieve this when you install a package?

@atugushev atugushev added the needs discussion Need some more discussion label Sep 19, 2019
@atugushev atugushev added the awaiting response Awaiting response from a contributor label Jan 9, 2020
@atugushev
Copy link
Member

@graingert does pip-compile --pip-args '--only-binary :all:' resolve the issue?

@webknjaz
Copy link
Member

webknjaz commented Jul 8, 2023

I wonder if this could build on top of #1681 later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response Awaiting response from a contributor feature Request for a new feature needs discussion Need some more discussion
Projects
None yet
Development

No branches or pull requests

3 participants