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

Commit 8d0ac38

Browse files
committed
clean up cruft from old openblas handling
1 parent 11d6d89 commit 8d0ac38

File tree

6 files changed

+15
-108
lines changed

6 files changed

+15
-108
lines changed

config.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ function build_wheel {
88
local lib_plat=$PLAT
99
if [ -n "$IS_OSX" ]; then
1010
install_gfortran
11-
else
12-
# For manylinux2010 builds with manylinux1 openblas builds
13-
$use_sudo yum install -y libgfortran-4.4.7
1411
fi
12+
echo gcc --version
13+
echo `gcc --version`
1514
build_libs $lib_plat
1615
# Fix version error for development wheels by using bdist_wheel
1716
build_bdist_wheel $@
@@ -44,7 +43,13 @@ function run_tests {
4443
$PYTHON_EXE -c "$(get_test_cmd)"
4544
# Check bundled license file
4645
$PYTHON_EXE ../check_license.py
47-
# Show BLAS / LAPACK used. Since this uses a wheel we cannot use
48-
# tools/openblas_config.py; tools is not part of what is shipped
46+
# Show BLAS / LAPACK used. Assumes this is one-directory-in
47+
# so we can find tools/openblas_config.py;
48+
if [ -e ../numpy/tools/openblas_support.py ]; then
49+
$PYTHON_EXE ../numpy/tools/openblas_support.py --check_version
50+
else
51+
echo could not find ../numpy, ls -d .. is
52+
ls -d ..
53+
fi
4954
$PYTHON_EXE -c 'import numpy; numpy.show_config()'
5055
}

env_vars.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22
# Environment variables for build
3-
OPENBLAS_VERSION="v0.3.7"
43
MACOSX_DEPLOYMENT_TARGET=10.9
54
CFLAGS="-std=c99 -fno-strict-aliasing"
65
# Macos's linker doesn't support stripping symbols
@@ -13,3 +12,6 @@ if [ "$(uname)" != "Darwin" ]; then
1312
# the current version of manybuild pass "-strip-all" to CPPFLAGS and FFLAGS
1413
STRIP_FLAGS=""
1514
fi
15+
# For verbosity: report where each command came from
16+
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
17+
set -x

env_vars_32.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
# The important difference from the 64-bit build is `-msse2` to
44
# compile sse loops for ufuncs.
55
set -x
6-
OPENBLAS_VERSION="v0.3.7"
76
MACOSX_DEPLOYMENT_TARGET=10.9
8-
# Causes failure for pre-1.19 in np.reciprocal
9-
# CFLAGS="-msse2 -std=c99 -fno-strict-aliasing"
10-
CFLAGS="-std=c99 -fno-strict-aliasing"
7+
CFLAGS="-msse2 -std=c99 -fno-strict-aliasing"
118
# Macos's linker doesn't support stripping symbols
129
if [ "$(uname)" != "Darwin" ]; then
1310
LDFLAGS="-Wl,--strip-debug"

on_openblas.rst

Lines changed: 0 additions & 55 deletions
This file was deleted.

openblas_support.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)