-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
get-poetry.py fallback to standard executables #1878
Conversation
adjusts #1668 |
There was a problem hiding this 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?
I'd like to change the behavior further if you'll let me. I think the new This python/python3 setup seems to be standard in Ubuntu16 and Ubuntu18 at the least. |
There was a problem hiding this 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!
* 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]>
* 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]>
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. |
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 (whenpython
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