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

Add PIP_NO_INPUT to environment passed variables passed to pip #1099

Closed
cryvate opened this issue Nov 9, 2017 · 0 comments
Closed

Add PIP_NO_INPUT to environment passed variables passed to pip #1099

cryvate opened this issue Nov 9, 2017 · 0 comments

Comments

@cryvate
Copy link

cryvate commented Nov 9, 2017

Currently, if the index-url requires a password prompt, but one of the extra-index-urls does not, virtualenv will fail, unless you set PIP_NO_INPUT=1 or similar. virtualenv requires pip to not ask for input, otherwise it will fail immediately, so we might as well tell pip so! Here:

env = {
    "PYTHONPATH": pythonpath,
    "JYTHONPATH": pythonpath,  # for Jython < 3.x
    "PIP_FIND_LINKS": findlinks,
    "PIP_USE_WHEEL": "1",
    "PIP_ONLY_BINARY": ":all:",
    "PIP_USER": "0",
}

Simply add another entry

    "PIP_NO_INPUT": "0",
@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants