-
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
use python3 by default to install poetry #163
Conversation
There is a PEP specific to this issue: https://www.python.org/dev/peps/pep-0394/ and it recommends that This change will hurt users, whereas using |
Hello, |
Ah, I misread the PR. Sorry! |
README.md
Outdated
@@ -16,7 +16,7 @@ from the rest of your system by vendorizing its dependencies. This is the | |||
recommended way of installing `poetry`. | |||
|
|||
```bash | |||
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python | |||
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | sudo -H python3 |
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.
This introduces two changes: python
-> python3
; and the introduction of sudo -H
.
On my machine (macOS with homebrew-installed python@2 and python3), using this with just the python3
change had the desired affect: it created a python3 virtual environment such that both
poetry run which python
and poetry run which python3
refer to a Python in the appropriatevirtualenv, and both poetry run python --version
and poetry run python3 --version
display Python 3.6.5
.
So yay for that! (I'd been trying to figure out how to use Poetry for Python 3 development, and was surprised that putting python = ">=3.0"
in pyproject.toml
didn't work. This PR saved me.)
I suspect, based on prior experience with sudo
and homebrew, that if I'd run it with the sudo
, I would have mixed up some ownerships in /usr/local/
in a way that could cause trouble downstream.
Maybe the sudo -H
part of this change can either simply be removed, or moved to a different PR since if it's necessary at all, its has different compatibility issues and may be solving a different issue.
The change from |
While the change for |
ok but there still is a problem with the recommanded way to install poetry :
|
I agree with @sdispater and personally prefer the solution proposed by #146 |
Is there a strong enough reason to recommend Python 3 explicitly? Don't get me wrong, I'm 100% pro-Python3, but Poetry supports 2.7 just as well. |
actually I don't know if this PR is a good thing. it stays complicated to install even with the --user of #146 @sdispater why not just use pipsi. it works very good with poetry and install is only |
What is the problem in installing with For me, if poetry is installed through pipsi, it doesn't work properly. Also, I personally think poetry should provide pipsi's functionality, as suggested in #149. |
I just think that installing an app via a script is something painfull. |
Let's assume that I installed poetry through pipsi. If I create a new project and let poetry create the virtualenv, pip is not linked in (this was reported in #169, but back then I was really confused, hahah) |
you are right. I did not see it because I only use poetry with pyenv. |
That's the thing: the created virtualenv has no pip. |
Closing since the new installer is now more flexible. |
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. |
Python3 should be default.
nobody on linux may execute this whithout sudo due to permission.