diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-03-05 13:48:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-05 13:48:05 -0700 |
commit | 64cfb046e86692daa1119ba1b1de2ab50d00afde (patch) | |
tree | a8d92dfc10be8d3c45968d47a6674795027b4661 /.github | |
parent | 95f591594fa1c3dbfd655d60709d5058fe373278 (diff) | |
parent | c11222af7adf6d056da3ecbd35726704e5342241 (diff) | |
download | numpy-64cfb046e86692daa1119ba1b1de2ab50d00afde.tar.gz |
Merge pull request #21128 from mayeut/cibuildwheel-config
BLD: move cibuildwheel configuration to `pyproject.toml`
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/wheels.yml | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 1f1677148..7759e2550 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -120,36 +120,11 @@ jobs: echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw32\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append refreshenv if: ${{ env.IS_32_BIT == 'true' }} + - name: Build wheels uses: pypa/cibuildwheel@v2.3.1 env: - NPY_USE_BLAS_ILP64: ${{ env.IS_32_BIT == 'true' && '0' || '1' }} CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} - CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 - CIBW_ENVIRONMENT_LINUX: CFLAGS='-std=c99 -fno-strict-aliasing' - LDFLAGS='-Wl,--strip-debug' - OPENBLAS64_=/usr/local - RUNNER_OS='Linux' - # MACOS linker doesn't support stripping symbols - CIBW_ENVIRONMENT_MACOS: CFLAGS='-std=c99 -fno-strict-aliasing' - OPENBLAS64_=/usr/local - CC=clang - CXX=clang++ - CIBW_ENVIRONMENT_WINDOWS: OPENBLAS64_=${{ env.IS_32_BIT == 'false' && 'openblas' || '' }} - OPENBLAS=${{ env.IS_32_BIT == 'true' && 'openblas' || '' }} - CFLAGS='${{ env.IS_32_BIT == 'true' && '-m32' || '' }}' - LDFLAGS='${{ env.IS_32_BIT == 'true' && '-m32' || '' }}' - # TODO: Add universal2 wheels, we need to fuse them manually - # instead of going through cibuildwheel - # This is because cibuildwheel tries to make a fat wheel - # https://github.com/multi-build/multibuild/blame/devel/README.rst#L541-L565 - # for more info - CIBW_ARCHS_MACOS: x86_64 arm64 - CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64" - CIBW_BUILD_VERBOSITY: 3 - CIBW_BEFORE_BUILD: bash {project}/tools/wheels/cibw_before_build.sh {project} - CIBW_BEFORE_TEST: pip install -r {project}/test_requirements.txt - CIBW_TEST_COMMAND: bash {project}/tools/wheels/cibw_test_command.sh {project} - uses: actions/upload-artifact@v2 with: |