-
-
Notifications
You must be signed in to change notification settings - Fork 25
Note how to use Python Launcher with pyenv #111
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
Conversation
Add a new question to the FAQ in the README file on how to have Python Launcher automatically use the same Python version as pyenv
|
For macOS + bash, for the BSD versions you'll need: export PY_PYTHON=$(head -n 1 ~/.pyenv/version | cut -d "." -f 1,2)or for the GNU/homebrew (which are closer to your Linux versions): export PY_PYTHON=$(ghead --lines 1 ~/.pyenv/version | gcut --delimiter=. --fields=1,2)(it's annoying, I know) |
|
@treyhunner the other subtly is referencing |
@jefftriplett it looks like this works on Linux too. Maybe the docs should use the shorter
I've always used Given that the pyenv docs mention export PY_PYTHON=$(head -n 1 $(pyenv root)/version | cut -d "." -f 1,2) |
Changes: - Use BSD and Linux compatible head and cut options - Fix fish environment variable setting line - Read `$(pyenv root)/version` instead of `~/.python-version`
|
@treyhunner nice find with I think that's the better path/less error-prone path for people since it should just work. |
|
I love that @treyhunner already created a PR for what I was going to file as an issue. @jefftriplett reviewing ❤️ @brettcannon This is fabulous. ☀️ |
🙌 Glad we fix the issue before you opened it @willingc! @jefftriplett and @brettcannon did most of the work of identifying the cause and possible solution. 💖 I love being part of a helpful documentation fix though. 😁 |
|
Obsessed with the turn out from this awesome crew! Yay teamwork! |
|
Thanks everyone for helping with this! |
Add a new question to the FAQ in the README file on how to have Python Launcher automatically use the same Python version as pyenv
This may fix #107 (it's a step in the direction of documenting pyenv support at least).