Skip to content

Commit 431c335

Browse files
authored
set symlinks to support precompiled pythons (#14)
#9
1 parent 9549b24 commit 431c335

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/workflow.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v3
23-
- uses: jdx/mise-action@v2
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
with:
27-
cache: false
23+
- run: |
24+
curl mise.run | sh
25+
echo 'export PATH=$HOME/.local/bin:$PATH' >> $GITHUB_ENV
2826
- run: mkdir -p ~/.local/share/mise/plugins
2927
- run: ln -s $PWD ~/.local/share/mise/plugins/poetry
30-
- run: mise i poetry@latest
28+
- run: mise i poetry@latest python
29+
continue-on-error: true
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3132
- run: mise x poetry@latest -- poetry --version
33+
- run: cat poetry-installer-error-*.log && exit 1
34+
if: failure()
3235

3336
lint:
3437
runs-on: ubuntu-latest

bin/install

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ install_poetry() {
4444
fi
4545

4646
if [ "$install_type" = "version" ]; then
47-
curl -sSL "$install_url" | POETRY_HOME=$install_path python3 - --version "$version" $flags
47+
curl -sSL "$install_url" | sed 's/symlinks=False/symlinks=True/' | POETRY_HOME=$install_path python3 - --version "$version" $flags
4848
elif [ "$install_type" = "ref" ]; then
49-
curl -sSL "$install_url" | POETRY_HOME=$install_path python3 - --git https://github.com/python-poetry/poetry.git@"$version" $flags
49+
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
5050
else
5151
fail "unknown install type"
5252
fi

0 commit comments

Comments
 (0)