Skip to content
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

use the python interpreter (to set the shebang line) when running pip #215

Open
sdementen opened this issue May 22, 2022 · 2 comments · May be fixed by #222
Open

use the python interpreter (to set the shebang line) when running pip #215

sdementen opened this issue May 22, 2022 · 2 comments · May be fixed by #222

Comments

@sdementen
Copy link

To allow to shiv packages for different versions of python (e.g. 3.8, 3.9, 3.10) from a single version of python (e.g. 3.8) in which shiv is installed, it would be practical to use the python interpreter to use in the shebang line as the python interpreter to use in the "python -m pip install --target ..."

@lorencarvalho
Copy link
Contributor

hi @sdementen,
this is an interesting suggestion and one I'm open to, however I would prefer that it be explicit rather than implicit.. perhaps as a flag? --pip-interpreter or --pip-path ?

@sdementen
Copy link
Author

Yes indeed. If not from backward incompatibilities, I would have set it as the default as it is the more natural.
Maybe add a warning for the default case if the version of the two python interpreters (target and runtime) are not the same

@sdementen sdementen linked a pull request Aug 1, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants