Skip to content

Commit

Permalink
manylinux docker for linux, repair with auditwheel, delocate, delvewheel
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 14, 2024
1 parent c81de15 commit d1e4f91
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,6 @@ jobs:
mingw-w64-clang-x86_64-libaec
mingw-w64-clang-x86_64-python-pip-tools
- name: Install Linux Dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
sudo apt-get install -y libhdf5-dev
sudo apt-get install -y ninja-build
gcc --version
gfortran --version
cmake --version
dpkg -s libboost-all-dev
dpkg -s libhdf5-dev
- uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
Expand All @@ -110,27 +94,41 @@ jobs:
run: |
PATH="/usr/local/opt/llvm/bin:$PATH"
pip wheel . -w dist
pip install delocate
delocate-listdeps dist/*.whl
delocate-wheel -v dist/*.whl
pip install dist/*.whl
if: matrix.platform == 'macos-13'

- name: Build and install macos-14
run: |
PATH="/opt/homebrew/opt/llvm/bin:$PATH"
pip wheel . -w dist
pip install delocate
delocate-listdeps dist/*.whl
delocate-wheel -v dist/*.whl
pip install dist/*.whl
if: matrix.platform == 'macos-14'

- name: Build and install windows-latest
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
delvewheel needed
delvewheel repair -v dist/*.whl
pip install dist/*.whl
if: matrix.platform == 'windows-latest'

- name: Build and install ubuntu-latest
- name: Build and install manylinux
run: |
platform=linux
pip wheel . -w dist
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 && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
rm -rf dist/*-linux_x86_64.whl
pip install dist/*.whl
if: matrix.platform == 'ubuntu-latest'

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down

0 comments on commit d1e4f91

Please sign in to comment.