From a3ef96347ec94a55f21fa5a7d8d8fa6b144d881b Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Fri, 17 May 2024 14:00:16 -0500 Subject: [PATCH] set symlinks to support precompiled pythons https://github.com/mise-plugins/mise-poetry/issues/9 --- .github/workflows/workflow.yml | 2 ++ bin/install | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index cb3035b..dea942c 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -28,6 +28,8 @@ jobs: - run: mkdir -p ~/.local/share/mise/plugins - run: ln -s $PWD ~/.local/share/mise/plugins/poetry - run: mise i poetry@latest + - if: failure() && steps.integrationTests.outcome == 'failure' + run: cat poetry-installer-error-*.log - run: mise x poetry@latest -- poetry --version lint: diff --git a/bin/install b/bin/install index b54ab72..d9cb6d1 100755 --- a/bin/install +++ b/bin/install @@ -44,9 +44,9 @@ install_poetry() { fi if [ "$install_type" = "version" ]; then - curl -sSL "$install_url" | POETRY_HOME=$install_path python3 - --version "$version" $flags + curl -sSL "$install_url" | sed 's/symlinks=False/symlinks=True/' | POETRY_HOME=$install_path python3 - --version "$version" $flags elif [ "$install_type" = "ref" ]; then - curl -sSL "$install_url" | POETRY_HOME=$install_path python3 - --git https://github.com/python-poetry/poetry.git@"$version" $flags + curl -sSL "$install_url" | sed 's/symlinks=False/symlinks=True/' | POETRY_HOME=$install_path python3 - --git https://github.com/python-poetry/poetry.git@"$version" $flags else fail "unknown install type" fi