Skip to content

Commit

Permalink
Don't crash if user has set UV_SYSTEM_PYTHON to true
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Apr 11, 2024
1 parent 0397879 commit d0d2408
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
FORCE_COLOR: "1" # Make tools pretty.
SETUPTOOLS_SCM_PRETEND_VERSION: "1.0" # avoid warnings about shallow checkout
UV_SYSTEM_PYTHON: "true" # ensure action can deal with this set

jobs:
check-argon2-cffi-bindings:
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ outputs:
the 'strategy.matrix' key.
value: ${{ steps.supported-pythons-setter.outputs.supported_python_classifiers_json_job_matrix_value }}


runs:
using: composite

steps:
- uses: actions/setup-python@v5
id: python-baipp
Expand Down Expand Up @@ -70,6 +72,9 @@ runs:
/tmp/baipp
--python ${{ steps.python-baipp.outputs.python-path }}
shell: bash
env:
UV_SYSTEM_PYTHON: "false"


- name: Install our tools
run: >
Expand All @@ -78,6 +83,7 @@ runs:
shell: bash
env:
VIRTUAL_ENV: /tmp/baipp
UV_SYSTEM_PYTHON: "false"

# Build SDist, then build wheel out of it if the user didn't forbid it.
# Set 'SOURCE_DATE_EPOCH' based on the last commit for build
Expand All @@ -94,6 +100,8 @@ runs:
fi
shell: bash
working-directory: ${{ inputs.path }}
env:
UV_SYSTEM_PYTHON: "false"

- name: Set output
id: dist-location-setter
Expand Down

0 comments on commit d0d2408

Please sign in to comment.