We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--prefix
What's the problem this feature will solve?
pip install pkg --prefix foo/ triggers WARNING: The scripts ... are installed in 'foo/bin' which is not on PATH.
pip install pkg --prefix foo/
WARNING: The scripts ... are installed in 'foo/bin' which is not on PATH.
For example:
➜ python -m pip --version pip 21.0.1 from .../tmp/.venv/lib/python3.9/site-packages/pip (python 3.9) ➜ python3.9 -m pip install black --prefix foo ... Successfully built black Installing collected packages: typed-ast, regex, pathspec, appdirs, black WARNING: The scripts black, black-primer and blackd are installed in 'foo/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed appdirs-1.4.4 black-20.8b1 pathspec-0.8.1 regex-2021.4.4 typed-ast-1.4.3
Describe the solution you'd like
Similar to what's done for --target calls:
--target
pip/src/pip/_internal/commands/install.py
Lines 384 to 385 in 7ec0fa5
$PATH
Alternative Solutions
It's possible to work around this warning by providing --no-warn-script-location.
--no-warn-script-location
Extra context
Interesting, this warning is triggered when using console_scripts, but not when using scripts.
console_scripts
scripts
The text was updated successfully, but these errors were encountered:
Sounds reasonable to me, I’ll be happy to accept a PR!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What's the problem this feature will solve?
pip install pkg --prefix foo/
triggersWARNING: The scripts ... are installed in 'foo/bin' which is not on PATH.
For example:
Describe the solution you'd like
Similar to what's done for
--target
calls:pip/src/pip/_internal/commands/install.py
Lines 384 to 385 in 7ec0fa5
$PATH
Alternative Solutions
It's possible to work around this warning by providing
--no-warn-script-location
.Extra context
Interesting, this warning is triggered when using
console_scripts
, but not when usingscripts
.The text was updated successfully, but these errors were encountered: