Skip to content

Conversation

@josev814
Copy link

On Linux, when pip is installed in /usr/local/bin/pip, shutil.which detects this. The binary_prefix is defaulting to /usr/bin/. If the file isn't symlinked to /usr/bin it will error out. Adding in a check to verify that the (binary_prefix, exe_name) exists should be done before passing to samefile to prevent errors from being thrown and for the -m invocation to then be used.

Bug: #11387

On Linux, when pip is installed in /usr/local/bin/pip, shutil.which detects this.  The binary_prefix is defaulting to /usr/bin/.  If the file isn't symlinked to /usr/bin it will error out.  Adding in a check to verify that the (binary_prefix, exe_name) exists should be done before passing to samefile to prevent errors from being thrown and for the -m invocation to then be used.
Adding rst news file
fixing bin_path to bin_exe_path variable
@josev814
Copy link
Author

Handled by pr #11318

@josev814 josev814 closed this Aug 23, 2022
@josev814 josev814 deleted the josev814-invocation-for-pip-patch branch August 23, 2022 15:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant