Skip to content

Commit 7e0b686

Browse files
author
Ayush Jha
committed
Fix maturin code in release.yml as well
1 parent 25618c0 commit 7e0b686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
export PATH="$HOME/.pyenv/versions/$(cat .python-version)/bin:$PATH"
139139
if test -d .env/bin/; then source .env/bin/activate; else source .env/Scripts/activate; fi
140140
maturin list-python
141-
PYTHON_INTERPRETER=$(maturin list-python | grep -o "CPython $(cat .python-version | grep -o -E '^[^\.]+\.[^\.]+').* at .*" | cut -d' ' -f 4 | tr '\\' '/')
141+
PYTHON_INTERPRETER=$(maturin list-python 2>&1 | grep -o "CPython $(cat .python-version | grep -o -E '^[^\.]+\.[^\.]+').* at .*" | cut -d' ' -f 4 | tr '\\' '/')
142142
echo "Selected interpreter: ${PYTHON_INTERPRETER}"
143143
just build-all "${{ matrix.target.target-name }}"
144144
@@ -157,7 +157,7 @@ jobs:
157157
export PATH="$HOME/.pyenv/versions/$(cat .python-version)/bin:$PATH"
158158
if test -d .env/bin/; then source .env/bin/activate; else source .env/Scripts/activate; fi
159159
maturin list-python
160-
PYTHON_INTERPRETER=$(maturin list-python | grep -o "CPython $(cat .python-version | grep -o -E '^[^\.]+\.[^\.]+').* at .*" | cut -d' ' -f 4 | tr '\\' '/')
160+
PYTHON_INTERPRETER=$(maturin list-python 2>&1 | grep -o "CPython $(cat .python-version | grep -o -E '^[^\.]+\.[^\.]+').* at .*" | cut -d' ' -f 4 | tr '\\' '/')
161161
echo "Selected interpreter: ${PYTHON_INTERPRETER}"
162162
just build-all-wheels "${PYTHON_INTERPRETER}" "${{ matrix.target.target-name }}"
163163
just build-any-wheel

0 commit comments

Comments
 (0)