From ecec46e6cfb15e4257ce28a2626dc5ac8165092c Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Tue, 15 Oct 2024 17:49:35 +0200 Subject: [PATCH] CI: build free-threaded Windows wheels --- .github/workflows/wheel_tests_and_release.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 8674ea377..9d1f35207 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -190,7 +190,7 @@ jobs: matrix: os: [windows-latest] cibw_arch: ["AMD64", "x86"] - cibw_python: ["cp310", "cp311", "cp312", "cp313"] + cibw_python: ["cp310", "cp311", "cp312", "cp313", "cp313t"] steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 with: @@ -213,6 +213,19 @@ jobs: with: architecture: x64 + - name: Install build deps; set CIBW environment variables + if: ${{ matrix.cibw_python }} == "cp313t" + shell: bash -el {0} + run: | + PYPI_URL="https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" + CIBW_DEPS="pip install --upgrade pip build &&\ + pip install --pre -i $PYPI_URL cython numpy scipy &&\ + pip install pytest meson-python ninja" + NO_BUILD_ISOLATION="pip; args: --no-build-isolation" + echo "CIBW_BEFORE_BUILD=$CIBW_DEPS" >> "$GITHUB_ENV" + echo "CIBW_BEFORE_TEST=$CIBW_DEPS" >> "$GITHUB_ENV" + echo "CIBW_BUILD_FRONTEND=$NO_BUILD_ISOLATION" >> "$GITHUB_ENV" + - name: Build Windows wheels for CPython uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1 with: