Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ It supports Python 2.7 and 3.4+.

Poetry provides a custom installer that will install `poetry` isolated
from the rest of your system by vendorizing its dependencies. This is the
recommended way of installing `poetry`.
recommended way of installing `poetry`. The installer installs a script to run Poetry, which will use the version of Python used to install Poetry.

```bash
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
Expand Down
8 changes: 5 additions & 3 deletions get-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def expanduser(path):
POETRY_LIB_BACKUP = os.path.join(POETRY_HOME, "lib-backup")


BIN = """#!/usr/bin/env python
BIN_TEMPLATE = """#!/usr/bin/env {python_executable_name}
# -*- coding: utf-8 -*-
import glob
import sys
Expand Down Expand Up @@ -580,8 +580,10 @@ def make_bin(self):
)

with open(os.path.join(POETRY_BIN, "poetry"), "w", encoding="utf-8") as f:
f.write(u(BIN))

python_executable_name = os.path.basename(Installer.CURRENT_PYTHON)
f.write(
u(BIN_TEMPLATE.format(python_executable_name=python_executable_name))
)
if not WINDOWS:
# Making the file executable
st = os.stat(os.path.join(POETRY_BIN, "poetry"))
Expand Down