Skip to content

Commit 5a9e021

Browse files
authored
Merge pull request #179 from mattip/shrink2
use 'DYNAMIC_LIST' to shrink x86_64 and i686 wheels (v0.3.28.0.1)
2 parents 9d07de9 + 275ebb6 commit 5a9e021

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
[project]
1010
name = "scipy-openblas64"
1111
# v0.3.28
12-
version = "0.3.28.0.0"
12+
version = "0.3.28.0.1"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

tools/build_openblas.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ if [ "$build_bits" == 64 ]; then
6464
extra="-fno-asynchronous-unwind-tables"
6565
vc_arch="X64"
6666
plat_tag="win_amd64"
67+
dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
6768
else
6869
march=pentium4
6970
extra="-mfpmath=sse -msse2"
7071
fextra="-m32"
7172
vc_arch="i386"
7273
plat_tag="win32"
74+
dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
7375
fi
7476
cflags="-O2 -march=$march -mtune=generic $extra"
7577
fflags="$fextra $cflags -frecursive -ffpe-summary=invalid,zero"
@@ -99,8 +101,9 @@ patch -p1 < ../patches-windows/openblas-make-libs.patch
99101
CFLAGS="$CFLAGS -fvisibility=protected -fno-ident" \
100102
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
101103
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
102-
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
104+
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20 \
103105
LDFLAGS="$LDFLAGS" \
106+
DYNAMIC_LIST="$dynamic_list" \
104107
COMMON_OPT="$cflags" \
105108
FCOMMON_OPT="$fflags" \
106109
MAX_STACK_ALLOC=2048 \

tools/build_steps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ function do_build_lib {
125125
Linux-x86_64)
126126
local bitness=64
127127
local target_flags="TARGET=PRESCOTT"
128+
local dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
128129
;;
129130
Darwin-x86_64)
130131
local bitness=64
@@ -135,6 +136,7 @@ function do_build_lib {
135136
*-i686)
136137
local bitness=32
137138
local target_flags="TARGET=PRESCOTT"
139+
local dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
138140
;;
139141
Linux-aarch64)
140142
local bitness=64

0 commit comments

Comments
 (0)