-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Document the environment variables which influence pip's behaviour #8044
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
Comments
Is there a way to dynamically alter that section so it gets updated based on the pip/src/pip/_internal/cli/cmdoptions.py Lines 141 to 143 in b55ec00
I'd tackle this issue, but it would be a waste of time to type it out manually if a more optimal solution was available, so I'm open to any advice! 😄 |
There is always a way with Sphinx plugins. Whether it’s easy or not, is another question (that I don’t know the answer of). |
All right, then I'm going to wait until there's a consensus whether this is worth implementing or not. Another solution would be to simply link the documentation page for |
Is it possible that is a mistake in the documentation and it is meant to be " There seems to be a pull request fixing this #9697 |
Uh oh!
There was an error while loading. Please reload this page.
The Python docs detail exactly what environment variables are usable and how they influence python's behavior: https://docs.python.org/3/using/cmdline.html?highlight=pythonpath#environment-variables
A similar section for pip's docs would be very helpful. The environment configuration section is not as useful: https://pip.pypa.io/en/stable/user_guide/#environment-variables
It just says to use
PIP_<UPPER_LONG_NAME>
but it's pretty much guesswork what UPPER_LONG_NAME are possible here, if you don't already have good familiarity with all the options and subcommands of the CLI.The docs then go on to give an example of
export PIP_DEFAULT_TIMEOUT=60
being equivalent topip --default-timeout=60
, but nothing inpip --help
mentions--default-timeout
(and the configuration section itself seems to be the only docs reference about it), so how would a user discover that in the first place?The text was updated successfully, but these errors were encountered: