Skip to content

Commit

Permalink
set symlinks to support precompiled pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 17, 2024
1 parent 9549b24 commit bf83d28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- uses: jdx/mise-action@v2
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cache: false
- run: cat poetry-installer-error-*.log
if: failure()
- run: mkdir -p ~/.local/share/mise/plugins
- run: ln -s $PWD ~/.local/share/mise/plugins/poetry
- run: mise i poetry@latest
Expand Down
4 changes: 2 additions & 2 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf83d28

Please sign in to comment.