[go: nahoru, domu]

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

feature: Python Launcher for pyenv #328

Open
limitedeternity opened this issue Oct 27, 2021 · 8 comments
Open

feature: Python Launcher for pyenv #328

limitedeternity opened this issue Oct 27, 2021 · 8 comments
Labels

Comments

@limitedeternity
Copy link

Many thanks for your project, it helped me a lot.
It's not actually a feature request, just wanted to share with you a project I made.
Python installation packages for Windows ship with a py.exe (Python Launcher), which is a convenient way to launch a specified version of Python interpreter without a need to manipulate PATH. But unfortunately, it doesn't detect installations made with pyenv.
So I've written a custom py.exe, which works for me as a drop-in replacement for an official one: https://github.com/limitedeternity/pyenv-py
Contributions are welcome!

@kirankotari
Copy link
Member

It's good to see py, but it deviated the original plan of bringing to native installation to windows. In your case I need to install rustup then only I can use this lib. is that correct?

@Darsstar
Copy link
Collaborator

It's good to see py, but it deviated the original plan of bringing to native installation to windows. In your case I need to install rustup then only I can use this lib. is that correct?

There is a 0.1.0 release which provides py.exe.

I've been thinking about contributing to https://github.com/brettcannon/python-launcher and add Windows support to that one, but now there is something I can use in the mean time!

@limitedeternity
Copy link
Author
limitedeternity commented Oct 28, 2021

In your case I need to install rustup then only I can use this lib. is that correct?

The build process depends on rust compiler, that's correct, but after that – no; you can get rid of rust toolchain once cargo finishes its task =)

@kirankotari
Copy link
Member

In your case I need to install rustup then only I can use this lib. is that correct?

The build process depends on rust compiler, that's correct, but after that – no; you can get rid of rust toolchain once cargo finishes its task =)

cargo is need to compile/install and for cargo I need to install rustup (This will be pre-req. to use the lib.)

@limitedeternity
Copy link
Author

and for cargo I need to install rustup

Other Rust Installation Methods

@a2hsh
Copy link
a2hsh commented Dec 23, 2021

Thank you @limitedeternity, your project is really helpful.
I manage multiple virtual invironments for multiple projects with different requirements,. Some of these projects require python launcher to work. I really appriciate the work you have done.

@limitedeternity
Copy link
Author

You are welcome, @a2hsh. Since you've found this project helpful, don't forget to give it a star ;)

@kirankotari kirankotari added the py label May 30, 2022
@issam-seghir
Copy link
issam-seghir commented Jun 30, 2023

Why pyenv doesn't install the Python Launcher after installing any python version
with pyenv install ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants