Skip to content

Commit

Permalink
build multiple python version in manylinux, debug macos-13 and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 14, 2024
1 parent f4d6eb3 commit 1f7d672
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ jobs:

- name: Build and install macos-13
run: |
export MACOSX_DEPLOYMENT_TARGET=14.0
export MACOSX_DEPLOYMENT_TARGET___NOT_USED=14.0
PATH="/usr/local/opt/llvm/bin:$PATH"
pip wheel . -w dist
ls -al dist
pip install delocate
delocate-listdeps dist/*.whl
delocate-wheel -v dist/*.whl
Expand All @@ -105,6 +106,7 @@ jobs:
run: |
PATH="/opt/homebrew/opt/llvm/bin:$PATH"
pip wheel . -w dist
ls -al dist
pip install delocate
delocate-listdeps dist/*.whl
delocate-wheel -v dist/*.whl
Expand All @@ -116,8 +118,12 @@ jobs:
run: |
pip wheel --verbose -Ccmake.define.CMAKE_C_COMPILER="clang.exe" -Ccmake.define.CMAKE_CXX_COMPILER="clang++.exe" . -w dist
pip install delvewheel
delvewheel needed -v dist/*.whl
delvewheel repair -v dist/*.whl
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'

Expand All @@ -127,6 +133,9 @@ jobs:
/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 && \
/opt/python/cp311-cp311/bin/pip wheel /io/ -w /io/dist && \
/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
Expand Down

0 comments on commit 1f7d672

Please sign in to comment.