Skip to content

Commit

Permalink
fix: Use old install script for Windows targets
Browse files Browse the repository at this point in the history
Ideally we would use the official source, but there's an
open issue (looks like it might be a wontfix) here
python-poetry/install.python-poetry.org#46
that's causing issues for Windows users
  • Loading branch information
sondrelg committed Oct 12, 2022
1 parent 51cd5c4 commit e1bb843
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ YELLOW="\033[33m"
RESET="\033[0m"

INSTALLATION_SCRIPT="$(mktemp)"
curl -sSL https://install.python-poetry.org/ --output "$INSTALLATION_SCRIPT"

if [ "${RUNNER_OS}" == "Windows" ]; then
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/48339106eb0d403a3c66519317488c8185844b32/install-poetry.py --output "$INSTALLATION_SCRIPT"
else
curl -sSL https://install.python-poetry.org/ --output "$INSTALLATION_SCRIPT"
fi

echo -e "\n${YELLOW}Setting Poetry installation path as $INSTALL_PATH${RESET}\n"
echo -e "${YELLOW}Installing Poetry 👷${RESET}\n"
Expand Down

0 comments on commit e1bb843

Please sign in to comment.