CI: use temporary uv venv for build deps
This commit is contained in:
14
.github/workflows/build-reusable.yml
vendored
14
.github/workflows/build-reusable.yml
vendored
@@ -157,11 +157,17 @@ jobs:
|
|||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
uv python install ${{ matrix.python }}
|
uv python install ${{ matrix.python }}
|
||||||
uv pip install --python ${{ matrix.python }} scikit-build-core numpy swig Cython pybind11
|
uv venv --python ${{ matrix.python }} .uv-build
|
||||||
if [[ "$RUNNER_OS" == "Linux" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
uv pip install --python ${{ matrix.python }} auditwheel
|
BUILD_PY=".uv-build\\Scripts\\python.exe"
|
||||||
else
|
else
|
||||||
uv pip install --python ${{ matrix.python }} delocate
|
BUILD_PY=".uv-build/bin/python"
|
||||||
|
fi
|
||||||
|
uv pip install --python "$BUILD_PY" scikit-build-core numpy swig Cython pybind11
|
||||||
|
if [[ "$RUNNER_OS" == "Linux" ]]; then
|
||||||
|
uv pip install --python "$BUILD_PY" auditwheel
|
||||||
|
else
|
||||||
|
uv pip install --python "$BUILD_PY" delocate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Set macOS environment variables
|
- name: Set macOS environment variables
|
||||||
|
|||||||
Reference in New Issue
Block a user