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

Prefer active Python on Poetry 1.2+ #22

Conversation

Kurt-von-Laven
Copy link
Contributor

Fixes #10.

Set experimental virtualenvs.prefer-active-python config option, newly introduced in Poetry 1.2.0, to true globally on Poetry 1.2+. Instruct Poetry to use the active version of Python rather than the version of Python that was active at the time the virtualenv was created. Spare the end developer the hassle of running poetry env use "$(asdf which python)" or blowing away and recreating their virtualenv when swapping Python versions.

Set experimental virtualenvs.prefer-active-python config option, newly
introduced in Poetry 1.2.0, to true globally on Poetry 1.2+. Instruct
Poetry to use the active version of Python rather than the version of
Python that was active at the time the virtualenv was created. Spare the
end developer the hassle of running poetry env use
"$(asdf which python)" or blowing away and recreating their virtualenv
when swapping Python versions.
@Kurt-von-Laven Kurt-von-Laven requested a review from a team as a code owner September 1, 2022 04:39
@crflynn
Copy link
Member

crflynn commented Sep 1, 2022

Hey @Kurt-von-Laven I actually beat you to this change. If you wouldn't mind in your other PR, the next step is to set two different version comparisons, one for the installer, and one for the new configuration post-install. If you make those changes we can merge #20

@Kurt-von-Laven
Copy link
Contributor Author

Closing since this duplicates #21. Will rebase #20 as you mentioned.

@Kurt-von-Laven Kurt-von-Laven deleted the prefer-active-python branch September 1, 2022 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

poetry installed with install-poetry.py does not respect asdf python version
2 participants