Skip to content

Commit 1b48f94

Browse files
authored
fix(release): hard code python path fallback (#837)
1 parent e6c88d1 commit 1b48f94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pip install poetry && \
161161
echo "PYTHON_PATH is set to: $PYTHON_PATH" && \
162162
if [ -z \"$PYTHON_PATH\" ]; then \
163163
echo "PYTHON_PATH is empty, using default python3.10" && \
164-
POETRY_PYTHON_PATH=$(which python3.10 || dirname $(ls /opt/hostedtoolcache/Python/3.10*/x64/bin/python3.10 | tail -n 1)/python3.10) && \
164+
POETRY_PYTHON_PATH=$(which python3.10 || echo "/opt/hostedtoolcache/Python/3.10.14/x64/bin/python3.10") && \
165165
echo "Resolved Python path: $POETRY_PYTHON_PATH" && \
166166
poetry env use $POETRY_PYTHON_PATH; \
167167
else \
@@ -170,4 +170,3 @@ else \
170170
fi && \
171171
poetry build
172172
"""
173-

0 commit comments

Comments
 (0)