Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow pip install --executable=/path to set #! path in scripts.
This is useful for cross-compiling, when the path to the Python executable that is being used to run pip, available at sys.executable, is not the same as the path to the Python executable that the installed product in a cross-compiled system needs to run. For example, if your toolchain lives at /build/aarch64--netbsd but you're building software to be installed at /opt/pkg, then sys.executable might be /build/aarch64--netbsd/bin/python3.10 but the shebang line of any scripts installed must /opt/pkg/bin/python3.10. With this change, you can accomplish that with: /build/aarch64--netbsd/bin/python3.10 -m pip install --executable=/opt/pkg/bin/python3.10 ... fix #12087
- Loading branch information
Taylor R Campbell
committed
Jun 14, 2023
1 parent
8a1eea4
commit 9027fbd
Showing
4 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters