This repository was archived by the owner on Feb 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ function set_arch {
35
35
export LDFLAGS=" $arch "
36
36
}
37
37
38
+ function build_wheel_with_patch {
39
+ # Patch numpy distutils to fix OpenBLAS build
40
+ (cd .. && ./patch_numpy.sh)
41
+ bdist_wheel_cmd $@
42
+ }
43
+
38
44
function build_osx_wheel {
39
45
# Build 64-bit wheel
40
46
# Standard gfortran won't build dual arch objects.
@@ -52,7 +58,7 @@ function build_osx_wheel {
52
58
# Work round build dependencies spec in pyproject.toml
53
59
# See e.g.
54
60
# https://travis-ci.org/matthew-brett/scipy-wheels/jobs/387794282
55
- build_bdist_wheel " $repo_dir "
61
+ build_wheel_cmd " build_wheel_with_patch " " $repo_dir "
56
62
}
57
63
58
64
function run_tests {
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Patch numpy distutils and compat with the version in this repo.
3
+ # Needed for correct detection of openblas on Mac.
4
+ np_root=$( dirname $( python -c " import numpy as np; print(np.__file__)" ) )
5
+ for sdir in distutils compat; do
6
+ rsync --delete -r numpy-distutils/numpy/${sdir} / ${np_root} /${sdir}
7
+ done
You can’t perform that action at this time.
0 commit comments