Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into replace_pval_extensio…
Browse files Browse the repository at this point in the history
…n_with_scipyl
  • Loading branch information
alexlancaster committed Nov 10, 2024
2 parents a0da8d2 + f1e9512 commit 5a7cae9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ jobs:
run: |
echo "CI_ONLY" $CI_ONLY
if [ "$CI_ONLY" == "true" ]; then
MATRIX="[{'only':'cp313-manylinux_x86_64','os':'ubuntu-20.04'},{'only':'cp313-win_amd64','os':'windows-2019'}, {'only':'cp313-macosx_x86_64','os':'macos-12'}, {'only':'cp313-macosx_arm64','os':'macos-14'}]"
MATRIX="[{'only':'cp313-manylinux_x86_64','os':'ubuntu-20.04'},{'only':'cp313-win_amd64','os':'windows-2019'}, {'only':'cp313-macosx_x86_64','os':'macos-13'}, {'only':'cp313-macosx_arm64','os':'macos-14'}]"
else
MATRIX=$(
{
cibuildwheel --print-build-identifiers --platform linux \
| jq -nRc '{"only": inputs, "os": "ubuntu-20.04"}' \
&& cibuildwheel --print-build-identifiers --platform macos --archs x86_64 \
| jq -nRc '{"only": inputs, "os": "macos-12"}' \
| jq -nRc '{"only": inputs, "os": "macos-13"}' \
&& cibuildwheel --print-build-identifiers --platform macos --archs arm64 \
| jq -nRc '{"only": inputs, "os": "macos-14"}' \
&& cibuildwheel --print-build-identifiers --platform windows \
Expand Down
18 changes: 11 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ musllinux-x86_64-image="musllinux_1_1"

[tool.cibuildwheel.macos]
# use oras to get archived 2.7.1 bottles of `gsl` that has 10.15 (on x86) / 11.0 (on arm64) builds
before-all = ["brew install swig oras",
# and archived 4.2.1 bottles of `swig` (swig 4.3.0 creates extensions that segfault)
before-all = ["brew install oras",
"oras pull ghcr.io/homebrew/core/swig:4.2.1",
"oras pull ghcr.io/homebrew/core/gsl:2.7.1"]
# re-enable if we need to do a per-build 'gsl' installation to force correct architecture when
# cross-compiling (https://stackoverflow.com/a/75488269)
Expand All @@ -63,23 +65,25 @@ archs = ["arm64", "x86_64"] # don't enable "universal2" binary
[[tool.cibuildwheel.overrides]]
select = "*-macosx_*"
inherit.environment="append"
environment = { CPATH="/opt/homebrew/include", LIBRARY_PATH="/opt/homebrew/lib" }
environment = { CPATH="/opt/homebrew/include", LIBRARY_PATH="/opt/homebrew/lib", PYTHONFAULTHANDLER="1" }

[[tool.cibuildwheel.overrides]]
select = "*-macosx_x86_64"
inherit.environment="append"
environment = { MACOSX_DEPLOYMENT_TARGET="10.15" } # target 10.15/Catalina
inherit.before-all="append"
# install the catalina version of `gsl` to match
before-all = "brew install ./gsl--2.7.1.catalina.bottle.tar.gz"
# install `swig` and the Catalina version of `gsl` to match
before-all = ["brew install ./swig--4.2.1.monterey.bottle.tar.gz",
"brew install ./gsl--2.7.1.catalina.bottle.tar.gz"]

[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
inherit.environment="append"
environment = { MACOSX_DEPLOYMENT_TARGET="11.0" } # target for 11.0/Big Sur
inherit.before-all="append"
# install the Big Sur version of `gsl` to match
before-all = "brew install ./gsl--2.7.1.arm64_big_sur.bottle.tar.gz"
inherit.before-all="append"
# install `swig` and the Big Sur version of `gsl` to match
before-all = ["brew install ./swig--4.2.1.arm64_ventura.bottle.tar.gz",
"brew install ./gsl--2.7.1.arm64_big_sur.bottle.tar.gz"]

[tool.cibuildwheel.windows]
# use nuget to install gsl on Windows, and manually supply paths
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def path_to_src(source_path_list):
package_dir = {"": src_dir},
packages = ["PyPop", "PyPop.xslt"],
package_data={"PyPop.xslt": data_file_paths},
install_requires = ["numpy <= 2.1.2",
install_requires = ["numpy <= 2.1.3",
"SciPy <= 1.14.1",
"lxml <= 5.3.0",
"importlib-resources; python_version <= '3.8'",
Expand Down

0 comments on commit 5a7cae9

Please sign in to comment.