Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Build Wheels
on: [push, pull_request]

env:
# Don't build python 2.7, pypy, or 32-bit wheels
CIBW_SKIP: "cp27-* pp* *-manylinux_i686 *-win32"
# Only support 64-bit cpython >= 3.6
CIBW_SKIP: "cp27-* cp35-* pp* *-manylinux_i686 *-win32"

# Run this script before each build...
CIBW_BEFORE_BUILD: bash ./scripts/github-actions/before_cibuildwheel.sh
Expand Down
2 changes: 1 addition & 1 deletion scripts/github-actions/before_cibuildwheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -ev

# We must install numpy for each wheel...
pip install numpy==1.18.5
pip install numpy==1.19.4

if [[ "$(uname)" != "Linux" ]] && [[ "$(uname)" != "Darwin" ]]; then
# Windows links to the python libraries, so we need to re-build
Expand Down
2 changes: 1 addition & 1 deletion scripts/github-actions/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi

if [[ "$(uname)" == "Linux" ]]; then
# We must build using an older toolchain. Use docker to accomplish this.
docker run --entrypoint=bash --rm -v $PWD:/project $CIBW_MANYLINUX_X86_64_IMAGE -c 'export PATH=/opt/python/cp37-cp37m/bin:$PATH && pip install numpy==1.18.5 && mkdir -p /project/build && cd /project/build && cmake .. -DPACKAGE_TESTS=OFF -DBUILD_PYTHON=ON && make'
docker run --entrypoint=bash --rm -v $PWD:/project $CIBW_MANYLINUX_X86_64_IMAGE -c 'export PATH=/opt/python/cp37-cp37m/bin:$PATH && pip install numpy==1.19.4 && mkdir -p /project/build && cd /project/build && cmake .. -DPACKAGE_TESTS=OFF -DBUILD_PYTHON=ON && make'
else
# Mac and Windows...
mkdir -p build
Expand Down
6 changes: 3 additions & 3 deletions scripts/github-actions/install.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
set -ev

pip install cibuildwheel==1.5.5
pip install cibuildwheel==1.6.4

if [[ $RUNNER_OS == "Windows" ]]; then
choco install -y swig --version=3.0.12
pip install wheel numpy==1.18.5
pip install wheel numpy==1.19.4
elif [[ $RUNNER_OS == "macOS" ]]; then
brew install swig
pip install wheel numpy==1.18.5
pip install wheel numpy==1.19.4
fi