Skip to content

Respect Python version in bin script#1312

Closed
michielboekhoff wants to merge 2 commits into
python-poetry:developfrom
michielboekhoff:respect-python-version-bin
Closed

Respect Python version in bin script#1312
michielboekhoff wants to merge 2 commits into
python-poetry:developfrom
michielboekhoff:respect-python-version-bin

Conversation

@michielboekhoff
Copy link
Copy Markdown

@michielboekhoff michielboekhoff commented Aug 21, 2019

  • [ N/A ] Added tests for changed code.
  • [ ✔️ ] Updated documentation for changed code.

This PR makes the Poetry installer get-poetry.py respect the installing version of Python in installing the ~/.poetry/bin/poetry script.

Simply, if python3 is used to install Poetry, then use that as the Python executable to run Poetry as. If it is python (e.g. Python 2), then use python.

This should fix the issues some people are having in #1257.

In particular, this extra documentation covers the Python binary used by
the poetry executable.
@michielboekhoff michielboekhoff changed the title Respect python version bin Respect Python version in bin script Aug 21, 2019
@brycedrennan brycedrennan added the kind/bug Something isn't working as expected label Aug 22, 2019
@brycedrennan
Copy link
Copy Markdown
Contributor

Thanks for contributing to poetry! This duplicates open pull request #1042.

I have concerns about the (nearly identical) approach that was taken in both pull requests. I'd welcome your thoughts on what the best way forward is.

@michielboekhoff
Copy link
Copy Markdown
Author

Thanks @brycedrennan! Apologies for the duplication, I didn't see that - I'll put my thoughts on the PR and on the issue.

@github-actions
Copy link
Copy Markdown

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

kind/bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants