From 10696f9a1005fe780c4cece9d8507e4904eac941 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 8 Jul 2025 14:46:22 -0700 Subject: [PATCH 1/2] .github/workflows/dist.yml [Windows]: Build cysignals explicitly with VS --- .github/workflows/dist.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 50729fd..4f528e4 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -172,7 +172,7 @@ jobs: CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9" # Run before wheel build CIBW_BEFORE_BUILD_WINDOWS: | - pip install delvewheel + pip install delvewheel && pip install --config-settings setup-args="--vsenv" cysignals # Environment during wheel build # PYTHONUTF8=1 is for delvewheel CIBW_ENVIRONMENT: >- @@ -263,13 +263,13 @@ jobs: config.status sage-local key: >- - ${{ runner.os }}-cibuildwheel-${{ matrix.arch }}-build=${{ + ${{ matrix.os }}-cibuildwheel-${{ matrix.arch }}-build=${{ hashFiles('build', 'configure.ac', 'm4') }} restore-keys: | - ${{ runner.os }}-cibuildwheel-${{ matrix.arch }} + ${{ matrix.os }}-cibuildwheel-${{ matrix.arch }} - name: Unpack and prepare id: unpack From 894ef1851e8b5e8dd907b07ec929d6e9a6488a57 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 8 Jul 2025 18:04:51 -0700 Subject: [PATCH 2/2] .github/workflows/dist.yml: Set CIBW_BUILD --- .github/workflows/dist.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 4f528e4..d2aa87b 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -50,6 +50,7 @@ jobs: SPKGS: _bootstrap _prereq # Non-Python packages to install as spkgs TARGETS_PRE: gmp mpfr mpc ppl-ensure + CIBW_BUILD: "*${{ matrix.build }}*" # Disable building PyPy wheels on all platforms CIBW_SKIP: "pp*" # @@ -164,6 +165,7 @@ jobs: SPKGS: _bootstrap _prereq # Non-Python packages to install as spkgs TARGETS_PRE: ppl-ensure + CIBW_BUILD: "*${{ matrix.build }}*" # Disable building PyPy wheels on all platforms CIBW_SKIP: "pp*" #