@@ -121,7 +121,6 @@ function do_build_lib {
121121 local suffix=$2
122122 local interface64=$3
123123 local nightly=$4
124- echo " Building with settings: '$plat ' '$suffix ' '$interface64 '"
125124 case $( get_os) -$plat in
126125 Linux-x86_64)
127126 local bitness=64
@@ -169,21 +168,29 @@ function do_build_lib {
169168 esac
170169 interface_flags=" $interface_flags SYMBOLPREFIX=scipy_ LIBNAMEPREFIX=scipy_ FIXED_LIBNAME=1"
171170 mkdir -p libs
172- start_spinner
173171 set -x
174172 git config --global --add safe.directory ' *'
175173 pushd OpenBLAS
176174 patch_source
177- CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized" \
178- make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
179- USE_OPENMP=0 NUM_THREADS=64 \
180- BINARY=$bitness $interface_flags $target_flags shared > /dev/null
175+ echo start building
176+ if [ -v dynamic_list ]; then
177+ CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized" \
178+ make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
179+ USE_OPENMP=0 NUM_THREADS=64 \
180+ DYNAMIC_LIST=" $dynamic_list " \
181+ BINARY=$bitness $interface_flags $target_flags shared 2>&1 1> /dev/null
182+ else
183+ CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized" \
184+ make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
185+ USE_OPENMP=0 NUM_THREADS=64 \
186+ BINARY=$bitness $interface_flags $target_flags shared 2>&1 1> /dev/null
187+ fi
188+ echo done building, now testing
181189 make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
182190 USE_OPENMP=0 NUM_THREADS=64 \
183191 BINARY=$bitness $interface_flags $target_flags tests
184192 make PREFIX=$BUILD_PREFIX $interface_flags install
185193 popd
186- stop_spinner
187194 if [ " $nightly " = " 1" ]; then
188195 local version=" HEAD"
189196 else
@@ -213,3 +220,13 @@ function do_build_lib {
213220 $BUILD_PREFIX /lib/pkgconfig/scipy-openblas* \
214221 $BUILD_PREFIX /lib/cmake/openblas
215222}
223+
224+ function build_on_travis {
225+ if [ ${TRAVIS_EVENT_TYPE} == " cron" ]; then
226+ build_lib " $PLAT " " $INTERFACE64 " 1
227+ version=$( cd OpenBLAS && git describe --tags --abbrev=8 | sed -e " s/^v\(.*\)-g.*/\1/" | sed -e " s/-/./g" )
228+ sed -e " s/^version = .*/version = \" ${version} \" /" -i.bak pyproject.toml
229+ else
230+ build_lib " $PLAT " " $INTERFACE64 " 0
231+ fi
232+ }
0 commit comments