Skip to content

Commit

Permalink
use build module for wheels workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Aug 3, 2022
1 parent f3509f9 commit 21ec677
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/manylinux/buildwheels.sh
Expand Up @@ -28,9 +28,8 @@ do
rm -rf build/
# Instead of letting setup.py install a newer numpy we install it here
# using the oldest supported version for ABI compatibility
${PYBIN} -m pip install --no-cache oldest-supported-numpy
PATH=${PYPATH}:$PATH ${PYBIN} setup.py build_ext -i
PATH=${PYPATH}:$PATH ${PYBIN} setup.py bdist_wheel
${PYBIN} -m pip install --no-cache oldest-supported-numpy build
PATH=${PYPATH}:$PATH ${PYBIN} -m build
done

cd dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Expand Up @@ -29,13 +29,13 @@ jobs:
brew install gsl
# Upgrade pip to get bdist_wheel
pip install --upgrade pip
pip install setuptools wheel
pip install setuptools wheel build
# Instead of letting setup.py install a newer numpy we install it here
# using the oldest supported version for ABI compatibility
pip install oldest-supported-numpy
- name: Build Wheel
run: |
python setup.py bdist_wheel
python -m build --wheel
- name: Delocate to bundle dynamic libs
run: |
pip install delocate
Expand Down
2 changes: 2 additions & 0 deletions doc/misc/changelog.md
Expand Up @@ -25,6 +25,8 @@ Dependencies

* Pinned pybind11 to 2.9.1.
PR {pr}`955`.
* Use [build](https://pypi.org/project/build/) for wheels.
PR {pr}`958`.

Build system and CI

Expand Down

0 comments on commit 21ec677

Please sign in to comment.