Skip to content

Commit

Permalink
split build/tests for manylinux pythons, don't repair win wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 14, 2024
1 parent 1f7d672 commit 0a2022d
Showing 1 changed file with 32 additions and 11 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:

- name: Build and install macos-13
run: |
export MACOSX_DEPLOYMENT_TARGET___NOT_USED=14.0
export MACOSX_DEPLOYMENT_TARGET=13.0
PATH="/usr/local/opt/llvm/bin:$PATH"
pip wheel . -w dist
ls -al dist
Expand All @@ -117,30 +117,51 @@ jobs:
shell: msys2 {0}
run: |
pip wheel --verbose -Ccmake.define.CMAKE_C_COMPILER="clang.exe" -Ccmake.define.CMAKE_CXX_COMPILER="clang++.exe" . -w dist
pip install delvewheel
for wheel_file in dist/*.whl; do
echo "Inspecting $wheel_file"
delvewheel needed -v $wheel_file
echo "Repairing $wheel_file"
delvewheel repair -v $wheel_file
done
# pip install delvewheel
# for wheel_file in dist/*.whl; do
# echo "Inspecting $wheel_file"
# delvewheel needed -v $wheel_file
# echo "Repairing $wheel_file"
# delvewheel repair -v $wheel_file
# done
pip install dist/*.whl
if: matrix.platform == 'windows-latest'

- name: Build and install manylinux
- name: Build and install manylinux for python 3.9
run: |
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c \
"yum install -y boost-devel hdf5-devel ninja-build && \
/opt/python/cp39-cp39/bin/pip wheel /io/ -w /io/dist && \
/opt/python/cp310-cp310/bin/pip wheel /io/ -w /io/dist && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
sudo rm -rf dist/*-linux_x86_64.whl
pip install dist/*.whl
if: matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.9'

- name: Build and install manylinux for python 3.11
run: |
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c \
"yum install -y boost-devel hdf5-devel ninja-build && \
/opt/python/cp311-cp311/bin/pip wheel /io/ -w /io/dist && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
sudo rm -rf dist/*-linux_x86_64.whl
pip install dist/*.whl
if: matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11'

- name: Build and install manylinux for python 3.12
run: |
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c \
"yum install -y boost-devel hdf5-devel ninja-build && \
/opt/python/cp312-cp312/bin/pip wheel /io/ -w /io/dist && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
sudo rm -rf dist/*-linux_x86_64.whl
pip install dist/*.whl
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12'

- name: Test not windows
run: |
Expand Down

0 comments on commit 0a2022d

Please sign in to comment.