Skip to content

Commit

Permalink
fix(release): hard code python path fallback (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr authored Jul 6, 2024
1 parent e6c88d1 commit 1b48f94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pip install poetry && \
echo "PYTHON_PATH is set to: $PYTHON_PATH" && \
if [ -z \"$PYTHON_PATH\" ]; then \
echo "PYTHON_PATH is empty, using default python3.10" && \
POETRY_PYTHON_PATH=$(which python3.10 || dirname $(ls /opt/hostedtoolcache/Python/3.10*/x64/bin/python3.10 | tail -n 1)/python3.10) && \
POETRY_PYTHON_PATH=$(which python3.10 || echo "/opt/hostedtoolcache/Python/3.10.14/x64/bin/python3.10") && \
echo "Resolved Python path: $POETRY_PYTHON_PATH" && \
poetry env use $POETRY_PYTHON_PATH; \
else \
Expand All @@ -170,4 +170,3 @@ else \
fi && \
poetry build
"""

0 comments on commit 1b48f94

Please sign in to comment.