Skip to content

Commit 4e457ff

Browse files
authored
Explicitly specify python in mac uv build invocation (#13447)
* Explicitly specify python in mac uv build invocation * Explicitly specify --python in a few more spots * try a different way
1 parent 2726efd commit 4e457ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/wheel-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,13 @@ jobs:
290290
291291
OPENSSL_DIR="$(readlink -f ../openssl-macos-universal2/)" \
292292
OPENSSL_STATIC=1 \
293-
uv build --wheel --require-hashes --build-constraint=$BUILD_REQUIREMENTS_PATH $PY_LIMITED_API cryptography*.tar.gz -o wheelhouse/
293+
uv build --python='${{ matrix.PYTHON.BIN_PATH }}' --wheel --require-hashes --build-constraint=$BUILD_REQUIREMENTS_PATH $PY_LIMITED_API cryptography*.tar.gz -o wheelhouse/
294294
env:
295295
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.PYTHON.DEPLOYMENT_TARGET }}
296296
ARCHFLAGS: ${{ matrix.PYTHON.ARCHFLAGS }}
297297
_PYTHON_HOST_PLATFORM: ${{ matrix.PYTHON._PYTHON_HOST_PLATFORM }}
298298

299-
- run: uv venv
299+
- run: uv venv --python='${{ matrix.PYTHON.BIN_PATH }}'
300300
- run: uv pip install --require-hashes -r $BUILD_REQUIREMENTS_PATH
301301
- run: uv pip install cryptography --no-index -f wheelhouse/
302302
- name: Show the wheel's minimum macOS SDK and architectures

0 commit comments

Comments
 (0)