Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit e19398c

Browse files
committed
update submodules to latest versions and fixes for manylinux2010
1 parent e8dc6ce commit e19398c

File tree

6 files changed

+22
-21
lines changed

6 files changed

+22
-21
lines changed

.travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ env:
1919
language: python
2020
# Default Python version is usually 2.7
2121
python: 3.6
22-
sudo: required
2322
dist: bionic
2423
services: docker
24+
os: linux
2525

26-
matrix:
26+
jobs:
2727
exclude:
2828
# Exclude the default Python 3.6 build
2929
- python: 3.6
@@ -37,6 +37,7 @@ matrix:
3737
- MB_PYTHON_VERSION=3.6
3838
- MB_ML_VER=2010
3939
- PLAT=i686
40+
- ENV_VARS_PATH=env_vars_32.sh
4041
- os: linux
4142
env:
4243
- MB_PYTHON_VERSION=3.7
@@ -46,6 +47,7 @@ matrix:
4647
- MB_PYTHON_VERSION=3.7
4748
- MB_ML_VER=2010
4849
- PLAT=i686
50+
- ENV_VARS_PATH=env_vars_32.sh
4951
- os: linux
5052
env:
5153
- MB_PYTHON_VERSION=3.8
@@ -55,6 +57,7 @@ matrix:
5557
- MB_PYTHON_VERSION=3.8
5658
- MB_ML_VER=2010
5759
- PLAT=i686
60+
- ENV_VARS_PATH=env_vars_32.sh
5861
- os: osx
5962
language: generic
6063
osx_image: xcode10.1

config.sh

+10-16
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,38 @@ function build_wheel {
77
local lib_plat=$PLAT
88
if [ -n "$IS_OSX" ]; then
99
install_gfortran
10+
else
11+
# For manylinux2010 builds with manylinux1 openblas builds
12+
$use_sudo yum install -y libgfortran-4.4.7
1013
fi
1114
build_libs $lib_plat
1215
# Fix version error for development wheels by using bdist_wheel
1316
build_bdist_wheel $@
1417
}
1518

1619
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
3024
}
3125

3226
function get_test_cmd {
3327
local extra_argv=${1:-$EXTRA_ARGV}
3428
echo "import sys; import numpy; \
3529
sys.exit(not numpy.test('full', \
36-
extra_argv=[${extra_argv}]))"
30+
extra_argv=['-vv', ${extra_argv}]))"
3731
}
3832

3933
function run_tests {
4034
# Runs tests on installed distribution from an empty directory
41-
# We only run the 64 bit tests as of NumPy 1.16.
4235
if [ -z "$IS_OSX" ]; then
4336
apt-get -y update && apt-get install -y gfortran
4437
fi
4538
python -c "$(get_test_cmd)"
4639
# Check bundled license file
4740
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
4943
python -c 'import numpy; numpy.show_config()'
5044
}

env_vars_32.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Environment variables for build
2+
OPENBLAS_VERSION="v0.3.7"
3+
MACOSX_DEPLOYMENT_TARGET=10.9
4+
CFLAGS="-msse2 -std=c99 -fno-strict-aliasing"

numpy

Submodule numpy updated 1088 files

0 commit comments

Comments
 (0)