Skip to content

Commit d0d2408

Browse files
committed
Don't crash if user has set UV_SYSTEM_PYTHON to true
1 parent 0397879 commit d0d2408

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
env:
1111
FORCE_COLOR: "1" # Make tools pretty.
1212
SETUPTOOLS_SCM_PRETEND_VERSION: "1.0" # avoid warnings about shallow checkout
13+
UV_SYSTEM_PYTHON: "true" # ensure action can deal with this set
1314

1415
jobs:
1516
check-argon2-cffi-bindings:

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ outputs:
3838
the 'strategy.matrix' key.
3939
value: ${{ steps.supported-pythons-setter.outputs.supported_python_classifiers_json_job_matrix_value }}
4040

41+
4142
runs:
4243
using: composite
44+
4345
steps:
4446
- uses: actions/setup-python@v5
4547
id: python-baipp
@@ -70,6 +72,9 @@ runs:
7072
/tmp/baipp
7173
--python ${{ steps.python-baipp.outputs.python-path }}
7274
shell: bash
75+
env:
76+
UV_SYSTEM_PYTHON: "false"
77+
7378

7479
- name: Install our tools
7580
run: >
@@ -78,6 +83,7 @@ runs:
7883
shell: bash
7984
env:
8085
VIRTUAL_ENV: /tmp/baipp
86+
UV_SYSTEM_PYTHON: "false"
8187

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

98106
- name: Set output
99107
id: dist-location-setter

0 commit comments

Comments
 (0)