From 14cf3972df6730a893b796760147ebae87ccdcc5 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 27 Apr 2023 18:24:01 -0600 Subject: [PATCH 1/2] MAINT: Pin rtools version on Windows. See https://github.com/scipy/scipy/pull/18374 for the reason. Closes #23675. --- azure-steps-windows.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure-steps-windows.yml b/azure-steps-windows.yml index 8fe677eab1eb..f610f34b7502 100644 --- a/azure-steps-windows.yml +++ b/azure-steps-windows.yml @@ -32,8 +32,9 @@ steps: displayName: 'Install dependencies; some are optional to avoid test skips' - powershell: | - choco install -y rtools - refreshenv + # rtools 42+ does not support 32 bits builds. + choco install -y rtools --noprogress --force --version=4.0.0.20220206 + echo "##vso[task.setvariable variable=RTOOLS40_HOME]c:\rtools40" displayName: 'Install rtools' - powershell: | From 2aaecb79db7131a5bb54ddb8e9d4ac6e8207fb7c Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 4 May 2023 09:54:24 -0600 Subject: [PATCH 2/2] MAINT, BLD: Install rtools 4.0 for Windows wheels. rtools 4.0 is no longer installed by default for GitHub actions and versions greater than 4.1 do not support 32 bits, so explicitly include the 4.0 version. Closes #23675 --- .github/workflows/wheels.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index a716139c4f48..9042d0a7744d 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -108,11 +108,14 @@ jobs: with: python-version: "3.x" + # We need rtools 4.0 to have 32 bit support on windows + - if: runner.os == 'windows' + uses: r-windows/install-rtools@13886bb4048f1b862d33869a18b73cdd446a3961 # main + - name: setup rtools for 32-bit run: | echo "PLAT=i686" >> $env:GITHUB_ENV - echo "MSYSTEM=MINGW32" >> $env:GITHUB_ENV - echo "PATH=$env:RTOOLS40_HOME\mingw32\bin;$env:PATH" >> $env:GITHUB_ENV + echo "PATH=c:\rtools40\mingw32\bin;$env:PATH" >> $env:GITHUB_ENV gfortran --version if: ${{ matrix.buildplat[1] == 'win32' }}