From d0d2408866fec29cd9f07a102e84a6a3562cd320 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Thu, 11 Apr 2024 13:25:55 -0700 Subject: [PATCH] Don't crash if user has set UV_SYSTEM_PYTHON to true --- .github/workflows/ci.yml | 1 + action.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e3ccd1..72a8c6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/action.yml b/action.yml index acb1e0c..12262bf 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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: > @@ -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 @@ -94,6 +100,8 @@ runs: fi shell: bash working-directory: ${{ inputs.path }} + env: + UV_SYSTEM_PYTHON: "false" - name: Set output id: dist-location-setter