@@ -63,7 +63,6 @@ function build_lib {
63
63
# BUILD_PREFIX - install suffix e.g. "/usr/local"
64
64
# GFORTRAN_DMG
65
65
# MB_ML_VER
66
- echo running build_lib
67
66
set -x
68
67
local plat=${1:- $PLAT }
69
68
local interface64=${2:- $INTERFACE64 }
@@ -72,16 +71,13 @@ function build_lib {
72
71
# Make directory to store built archive
73
72
if [ -n " $IS_OSX " ]; then
74
73
# Do build, add gfortran hash to end of name
75
- echo building on macox since IS_OSX is defined
76
74
wrap_wheel_builder do_build_lib " $plat " " gf_${GFORTRAN_SHA: 0: 7} " " $interface64 " " $nightly "
77
75
return
78
76
fi
79
77
# Manylinux wrapper
80
78
local libc=${MB_ML_LIBC:- manylinux}
81
79
local docker_image=quay.io/pypa/${libc}${manylinux} _${plat}
82
- echo pulling image ${docker_image}
83
80
docker pull $docker_image
84
- echo done pulling image, starting docker run
85
81
# Docker sources this script, and runs `do_build_lib`
86
82
docker run --rm \
87
83
-e BUILD_PREFIX=" $BUILD_PREFIX " \
@@ -93,7 +89,6 @@ function build_lib {
93
89
-e MB_ML_LIBC=${libc} \
94
90
-v $PWD :/io \
95
91
$docker_image /io/tools/docker_build_wrap.sh
96
- echo done docker run of docker_build_wrap.sh
97
92
}
98
93
99
94
function patch_source {
@@ -102,7 +97,7 @@ function patch_source {
102
97
for f in $( ls ../patches) ; do
103
98
echo applying patch $f
104
99
git apply ../patches/$f
105
- done
100
+ done
106
101
}
107
102
108
103
function do_build_lib {
@@ -124,34 +119,34 @@ function do_build_lib {
124
119
case $( get_os) -$plat in
125
120
Linux-x86_64)
126
121
local bitness=64
127
- local target_flags= " TARGET= PRESCOTT"
122
+ local target= " PRESCOTT"
128
123
local dynamic_list=" PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
129
124
;;
130
125
Darwin-x86_64)
131
126
local bitness=64
132
- local target_flags= " TARGET= CORE2"
127
+ local target= " CORE2"
133
128
# Pick up the gfortran runtime libraries
134
129
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
135
130
;;
136
131
* -i686)
137
132
local bitness=32
138
- local target_flags= " TARGET= PRESCOTT"
133
+ local target= " PRESCOTT"
139
134
local dynamic_list=" PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
140
135
;;
141
136
Linux-aarch64)
142
137
local bitness=64
143
- local target_flags= " TARGET= ARMV8"
138
+ local target= " ARMV8"
144
139
;;
145
140
Darwin-arm64)
146
141
local bitness=64
147
- local target_flags= " TARGET= VORTEX"
142
+ local target= " VORTEX"
148
143
;;
149
144
* -s390x)
150
145
local bitness=64
151
146
;;
152
147
* -ppc64le)
153
148
local bitness=64
154
- local target_flags= " TARGET= POWER8"
149
+ local target= " POWER8"
155
150
;;
156
151
* ) echo " Strange plat value $plat " ; exit 1 ;;
157
152
esac
@@ -176,21 +171,19 @@ function do_build_lib {
176
171
patch_source
177
172
echo start building
178
173
if [ -v dynamic_list ]; then
179
- CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized -fno-ident " \
180
- make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
174
+ CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized" \
175
+ make BUFFERSIZE=20 DYNAMIC_ARCH=1 QUIET_MAKE=1 \
181
176
USE_OPENMP=0 NUM_THREADS=64 \
182
177
DYNAMIC_LIST=" $dynamic_list " \
183
- BINARY=$bitness $interface_flags $target_flags shared 2>&1 1> /dev/null
178
+ BINARY=" $bitness " $interface_flags \
179
+ TARGET=" $target "
184
180
else
185
- CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized -fno-ident " \
186
- make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
181
+ CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized" \
182
+ make BUFFERSIZE=20 DYNAMIC_ARCH=1 QUIET_MAKE=1 \
187
183
USE_OPENMP=0 NUM_THREADS=64 \
188
- BINARY=$bitness $interface_flags $target_flags shared 2>&1 1> /dev/null
184
+ BINARY=" $bitness " $interface_flags \
185
+ TARGET=" $target "
189
186
fi
190
- echo done building, now testing
191
- make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
192
- USE_OPENMP=0 NUM_THREADS=64 \
193
- BINARY=$bitness $interface_flags $target_flags tests
194
187
make PREFIX=$BUILD_PREFIX $interface_flags install
195
188
popd
196
189
if [ " $nightly " = " 1" ]; then
0 commit comments