-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv install
CLI option to pass options through to pip
#4360
Comments
+1 for this one. I'm personally not familiar with Pipenv sources, but maybe one suggestion - in micropipenv we used double dashes to distinguish parameters passed to pip. This way we did not need to enumerate all the parameters pip potentially supports. I'm not sure about affecting other already existing Pipenv options though. |
I took a stab at adding the ability to pass --extra-pip-options="" to pipenv. There is a branch and it seems to work -- would be cool if anyone could try it (tagged to this ticket) and I'll look into adding tests. |
This was completed. |
Hi! I've tried to use this --extra-pip-options with --abi or --python-version and seem to be ignored. Is this intended? When I try: I keep seeing this lines:
But I expect the downloaded package to be:
|
#287 and #3734 are previous requests to support passing pip options to the
pipenv install
command line, and both were closed with the suggestion to use pip's environment variable based settings.There are a couple of key usability problems with handling those requests that way:
PIP_ONLY_BINARY=:all: pipenv install <project>
notation to set an env var for one commandPIP_BINARY_ONLY=1
before debugging it with a plainpip install
invocation)More generally, there are some
pip
options that pipenv should really be intercepting anyway, to either use as input to the dependency resolution process, or else to emit warnings about potential discrepancies betweenpip install
results andpipenv lock
results (think--prefer-binary
,--only-binary
,--no-binary
,--platform
,--python-version
,--implementation
,--abi
,--upgrade
,--upgrade-strategy
,--require-hashes
,--constraint
,--ignore-install
,--ignore-requires-python
,--index-url
,--extra-index-url
,--find-links
,--no-index-url
).The text was updated successfully, but these errors were encountered: