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

Improve environment management #1477

Merged
merged 2 commits into from
Oct 18, 2019
Merged

Improve environment management #1477

merged 2 commits into from
Oct 18, 2019

Conversation

sdispater
Copy link
Member

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

This PR should fix or at least alleviate issues that users face when trying to setup a project with a python requirement that is not compatible with the currently used Python version (see #536).

The environment manager will now try to find a compatible Python version in the current path and use/activate it accordingly. Note that it will still fail if none can be found but with, hopefully, a better error message with some pointers as to how the user can solve the problem.

@sdispater sdispater added area/cli Related to the command line kind/feature Feature requests/implementations labels Oct 17, 2019
@sdispater sdispater added this to the 1.0 milestone Oct 17, 2019
@pspeter
Copy link

pspeter commented Oct 18, 2019

This seems to fix #1417 + #1425 and makes #1469 obsolete.

@KelSolaar
Copy link

That's great thanks @sdispater !

michielboekhoff pushed a commit to michielboekhoff/poetry that referenced this pull request Oct 29, 2019
* Refactor the environment management code

* Improve executable selection when current Python is incompatible
michielboekhoff pushed a commit to michielboekhoff/poetry that referenced this pull request Oct 29, 2019
* Refactor the environment management code

* Improve executable selection when current Python is incompatible
)
)

for python_to_try in reversed(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not sorted(arg, arg, reverse=True)

Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/cli Related to the command line kind/feature Feature requests/implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants