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

get-poetry.py fallback to standard executables #1878

Merged

Conversation

jonapich
Copy link
Contributor

@jonapich jonapich commented Jan 13, 2020

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

I wasn't sure how to spin new tests here; I believe the get-poetry.py script isn't part of the test suite, is that possible?

This makes the installation more flexible by allowing python3 on linux (when python cannot be found; typical in a lot of 2 -> 3 migration scenarios).

On windows, we add some basic support for PEP 397 by leveraging the py.exe launcher. Since Windows uses the .bat file to launch the .py file, I removed the shebang from the windows launcher so that we don't end up writing /usr/bin/env py.exe -3 😅

fixes #1877

@jonapich
Copy link
Contributor Author

adjusts #1668

Copy link
Contributor Author

@jonapich jonapich left a comment

Choose a reason for hiding this comment

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

Should this point to master instead, and be released a bug fix?

@jonapich jonapich requested a review from sdispater January 15, 2020 16:02
@jonapich
Copy link
Contributor Author

jonapich commented Jan 15, 2020

I'd like to change the behavior further if you'll let me. I think the new _which_python() method should return python3 instead of python if python points to 2.x but python3 is available?

This python/python3 setup seems to be standard in Ubuntu16 and Ubuntu18 at the least.

@jonapich jonapich requested a review from finswimmer January 16, 2020 13:51
get-poetry.py Outdated Show resolved Hide resolved
Copy link
Member

@sdispater sdispater left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@sdispater sdispater merged commit e70ee31 into python-poetry:develop May 14, 2020
sdispater pushed a commit that referenced this pull request May 15, 2020
* get-poetry.py fallback to standard executables

* documentation update

* fix typo due to cleanup

* favor python3 over python2 when creating launcher

* launcher favors 3.5 and up, else the first valid one it finds.

* favor any py3 over py2, not just 3.5+

Co-authored-by: Jonathan Piché <[email protected]>
sdispater added a commit that referenced this pull request Jun 10, 2020
* get-poetry.py fallback to standard executables

* documentation update

* fix typo due to cleanup

* favor python3 over python2 when creating launcher

* launcher favors 3.5 and up, else the first valid one it finds.

* favor any py3 over py2, not just 3.5+

Co-authored-by: Jonathan Piché <[email protected]>

Co-authored-by: Jonathan Piché <[email protected]>
Co-authored-by: Jonathan Piché <[email protected]>
sdispater added a commit that referenced this pull request Jun 11, 2020
sdispater added a commit that referenced this pull request Jun 11, 2020
…try-script

Revert "get-poetry.py fallback to standard executables (#1878) (#2426)"
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants