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

Relax check_dist_restriction for dry runs #11764

Open
1 task done
tgeng opened this issue Jan 29, 2023 · 0 comments
Open
1 task done

Relax check_dist_restriction for dry runs #11764

tgeng opened this issue Jan 29, 2023 · 0 comments
Labels
S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature

Comments

@tgeng
Copy link

tgeng commented Jan 29, 2023

What's the problem this feature will solve?

I am trying to use pip as a cross platform dependency resolver with the new --report flag. However, currently this does not work well:

$ pip3 install --ignore-installed --python-version 37 --abi cp37m --platform manylinux1_x86_64 --implementation cp --dry-run --quiet --report - frozenlist uwsgi
ERROR: When restricting platform and interpreter constraints using --python-version, --platform, --abi, or --implementation, either --no-deps must be set, or --only-binary=:all: must be set and --no-binary must not be set (or must be set to :none:).

Restricting to --only-binary does not work in this case because uwsgi does not have a compatible wheel.

Describe the solution you'd like

It appears to me that the current check_dist_restriction is unnecessarily restrictive for dry runs. Hence it would be nice to relax this restriction.

Alternative Solutions

It's definitely possible to just use pip functionality as a library and create a separate resolver entry point for my use case. (Or I can just fork pip with my need). But the fix to pip seems simple enough so I would like to try upstream it.

Additional context

#53

Code of Conduct

@tgeng tgeng added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant