Skip to content

Commit 5671573

Browse files
authored
Merge pull request #3718 from neutrinoceros/backport_3715
Backport PR #3715 to yt-4.0.x (REL: update cibuildwheel, simplify wheel building workflow)
2 parents 4b75528 + e6189e6 commit 5671573

1 file changed

Lines changed: 5 additions & 28 deletions

File tree

.github/workflows/wheels.yaml

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,21 @@ jobs:
2323
fail-fast: false
2424

2525
steps:
26-
- uses: actions/setup-python@v2
27-
name: Install Python
28-
with:
29-
python-version: 3.9
30-
31-
- uses: s-weigand/setup-conda@v1
32-
if: matrix.os == 'windows-latest'
33-
with:
34-
update-conda: true
35-
conda-channels: conda-forge
36-
activate-conda: true
37-
python-version: 3.9
38-
3926
- uses: actions/checkout@v2
40-
- name: Install cibuildwheel
41-
run: python -m pip install cibuildwheel==2.2.2
42-
43-
- name: Install dependencies and yt
44-
shell: bash
45-
env:
46-
dependencies: "full"
47-
LDFLAGS: "-static-libstdc++"
48-
run: source ./tests/ci_install.sh
4927

5028
- name: Build wheels for CPython
51-
run: |
52-
python -m cibuildwheel --output-dir dist
29+
uses: pypa/cibuildwheel@v2.3.0
5330
env:
5431
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-* cp310-*"
55-
CIBW_SKIP: "*-musllinux_*" # these fail due to side effects from previous builds
32+
CIBW_SKIP: "*-musllinux_*" # numpy doesn't have wheels for musllinux so we can't build some quickly and without bloating
5633
CIBW_ARCHS_LINUX: "x86_64"
5734
CIBW_ARCHS_MACOS: "x86_64"
5835
CIBW_ARCHS_WINDOWS: "auto"
59-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
60-
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
6136
CIBW_ENVIRONMENT: "LDFLAGS='-static-libstdc++'"
37+
CIBW_BUILD_VERBOSITY: 1
38+
CIBW_BEFORE_BUILD: "rm -rf build/" # working around .so files accumulation between builds leading up to bloated wheels
6239

6340
- uses: actions/upload-artifact@v2
6441
with:
6542
name: wheels
66-
path: ./dist/*.whl
43+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)