-
Notifications
You must be signed in to change notification settings - Fork 3k
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
no-warn-script-location doesn't work in pip.conf when PIP_CONFIG_FILE is used #6209
Comments
Actually, this looks like it's another example of this: #5735 (or this #5200) Also see this section of the docs: https://pip.pypa.io/en/stable/user_guide/#config-file
|
I didn't try that (for obvious reasons), but will try it now when I get a chance. I did try doing |
Turns out, it does work. This is a funny bug! Are there plans to fix it? |
Yeah, it is funny. :) It's not so easy to fix because it's baked in and so there are backwards compatibility considerations. Many people could be relying on the current interpretation of the values. I will mark this as a documentation issue though because I think it can be documented better (e.g. mentioned in the CLI help string for the option and the affected options enumerated in the configuration section of the pip docs). |
@cjerdonek Do you reckon this can be a place where a first time contributor can contribute? |
@pradyunsg Yes, I think so. |
This issue is a good starting point for anyone who wants to help out with pip's development -- it's simple and the process of fixing this should be a good introduction to pip's development workflow. See the discussion above to understand what the desired fix is. |
Environment
Description
Pip appears to ignore the setting of
no-warn-script-location
if it's specified inpip.conf
andpip.conf
is in a nonstandard location (but should be read because of PIP_CONFIG_FILE pointing to it).Expected behavior
pip install -U foo
(wherefoo
will install some executables) will installfoo
and there is no warning about how the newly installed exectuables aren't on my $PATH.What actually happens is that I get the warning. Pip is ignoring this setting in my pip.conf.
Note that if I use the
--no-warn-script-location
flag directly on the cli, there is no warning.How to Reproduce
python
binaries aren't on $PATH. Rather, they're symlinked into a folder that is on $PATH. Install pip using said custom python.export PIP_CONFIG_FILE="~/somepath/pip.conf"
pip install virtualenv
(e.g., the specific package doesn't seem to make a difference.)Output
The text was updated successfully, but these errors were encountered: