Skip to content

Comments

get fullpath of given python executable when activating env#5086

Merged
neersighted merged 1 commit intopython-poetry:masterfrom
finswimmer:issue-5077-env-use-python-path
Jan 24, 2022
Merged

get fullpath of given python executable when activating env#5086
neersighted merged 1 commit intopython-poetry:masterfrom
finswimmer:issue-5077-env-use-python-path

Conversation

@finswimmer
Copy link
Member

@finswimmer finswimmer commented Jan 22, 2022

poetry env use python leads to strange behavior if the user has changed the current python version by a tool like pyenv.

The python version is determined with the current activated python version, but virtualenv, which is used to create the venv, doesn't recognize the change of the current python version by pyenv and will use the system's python to create the venv.

This is solved by determine the full executable path for the given python.

Resolves: #5077

@finswimmer finswimmer marked this pull request as ready for review January 22, 2022 17:39
@finswimmer finswimmer requested a review from a team January 22, 2022 17:39
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

poetry incorrectly identifies python version requirement

2 participants