@@ -7,44 +7,38 @@ function build_wheel {
7
7
local lib_plat=$PLAT
8
8
if [ -n " $IS_OSX " ]; then
9
9
install_gfortran
10
+ else
11
+ # For manylinux2010 builds with manylinux1 openblas builds
12
+ $use_sudo yum install -y libgfortran-4.4.7
10
13
fi
11
14
build_libs $lib_plat
12
15
# Fix version error for development wheels by using bdist_wheel
13
16
build_bdist_wheel $@
14
17
}
15
18
16
19
function build_libs {
17
- local plat=${1:- $PLAT }
18
- # Force 64-bit OpenBLAS library for macOS intel (dual arch)
19
- # builds. For these builds, we pretend to be dual arch, but in
20
- # fact we're only using the 64-bit build of OpenBLAS
21
- if [ -n $IS_OSX ] && [ $plat == intel ]; then
22
- plat=x86_64
23
- fi
24
- local tar_fname=$( get_gf_lib " openblas-${OPENBLAS_VERSION} " " $plat " )
25
- local tar_path=$( abspath $tar_fname )
26
- # Sudo needed for macOS
27
- local use_sudo=" "
28
- [ -n " $IS_OSX " ] && use_sudo=" sudo"
29
- (cd / && $use_sudo tar zxf $tar_path )
20
+ # Use the same incantation as numpy/tools/travis-before-install.sh
21
+ target=$( python numpy/tools/openblas_support.py)
22
+ $use_sudo cp -r $target /lib/* /usr/local/lib
23
+ $use_sudo cp $target /include/* /usr/local/include
30
24
}
31
25
32
26
function get_test_cmd {
33
27
local extra_argv=${1:- $EXTRA_ARGV }
34
28
echo " import sys; import numpy; \
35
29
sys.exit(not numpy.test('full', \
36
- extra_argv=[${extra_argv} ]))"
30
+ extra_argv=['-vv', ${extra_argv} ]))"
37
31
}
38
32
39
33
function run_tests {
40
34
# Runs tests on installed distribution from an empty directory
41
- # We only run the 64 bit tests as of NumPy 1.16.
42
35
if [ -z " $IS_OSX " ]; then
43
36
apt-get -y update && apt-get install -y gfortran
44
37
fi
45
38
python -c " $( get_test_cmd) "
46
39
# Check bundled license file
47
40
python ../check_license.py
48
- # Show BLAS / LAPACK used
41
+ # Show BLAS / LAPACK used. Since this uses a wheel we cannot use
42
+ # tools/openblas_config.py; tools is not part of what is shipped
49
43
python -c ' import numpy; numpy.show_config()'
50
44
}
0 commit comments