From 757da0345d23ad1ac8899d48e26a642eedb01eb5 Mon Sep 17 00:00:00 2001 From: Boris Bolliet Date: Sun, 29 Sep 2024 19:36:55 +0100 Subject: [PATCH] Update build_wheels.yml --- .github/workflows/build_wheels.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 687405f5..dc1c715b 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -221,13 +221,41 @@ jobs: run: python -m cibuildwheel --output-dir wheelhouse + + - name: Install FFTW and GSL on Windows + if: matrix.os == 'windows-latest' + run: | + # Download and install FFTW + curl -LO http://www.fftw.org/fftw-3.3.10-dll64.zip + Expand-Archive fftw-3.3.10-dll64.zip -DestinationPath fftw + + # Download and install GSL + curl -LO https://www.gfd-dennou.org/arch/davis/gsl/gsl-2.6/gsl-2.6-windows.zip + Expand-Archive gsl-2.6-windows.zip -DestinationPath gsl + + # Set environment variables to link FFTW and GSL + echo "::add-path::$(pwd)/fftw" + echo "::add-path::$(pwd)/gsl" + echo "::add-path::$(pwd)/fftw/lib" + echo "::add-path::$(pwd)/gsl/lib" + echo "::set-env name=FFTW_INCLUDE_PATH::$(pwd)/fftw/include" + echo "::set-env name=GSL_INCLUDE_PATH::$(pwd)/gsl/include" + echo "::set-env name=FFTW_LIB_PATH::$(pwd)/fftw/lib" + echo "::set-env name=GSL_LIB_PATH::$(pwd)/gsl/lib" + shell: pwsh + + # Build wheels for Windows - name: Build wheels for Windows if: matrix.os == 'windows-latest' env: CIBW_BUILD: ${{ env.CIBW_BUILD }} CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-* cp38-* pp* *-win32" + # Add FFTW and GSL paths to the environment variables + LIBRARY_PATH: "$(pwd)/fftw/lib;$(pwd)/gsl/lib" + C_INCLUDE_PATH: "$(pwd)/fftw/include;$(pwd)/gsl/include" run: python -m cibuildwheel --output-dir wheelhouse + shell: pwsh - name: Install dependencies for source distribution run: |