summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-12-20 12:41:18 -0700
committerCharles Harris <charlesr.harris@gmail.com>2017-12-20 12:41:18 -0700
commitff4ce31df7f2b4c2675c8507569199c5b0a227d4 (patch)
tree73d7e887208e86532b9b933bdfd3b26dca340085 /tools
parent2767934122b0782ba898dd1573778a1fb743c7f2 (diff)
downloadpython-numpy-ff4ce31df7f2b4c2675c8507569199c5b0a227d4.tar.gz
python-numpy-ff4ce31df7f2b4c2675c8507569199c5b0a227d4.tar.bz2
python-numpy-ff4ce31df7f2b4c2675c8507569199c5b0a227d4.zip
MAINT: Fix tests failures on travis CI merge.
Disable "-Wsign-compare" and "-Wunused-result" gcc warnings. These seem to have been enabled by default recently for wheels sdist builds.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-test.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index 33267d031..f3bb576bd 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -138,6 +138,8 @@ if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
# ensure that the pip / setuptools versions deployed inside
# the venv are recent enough
$PIP install -U virtualenv
+ # ensure some warnings are not issued
+ export CFLAGS=$CFLAGS" -Wno-sign-compare -Wno-unused-result"
$PYTHON setup.py bdist_wheel
# Make another virtualenv to install into
virtualenv --python=`which $PYTHON` venv-for-wheel
@@ -151,6 +153,8 @@ if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
elif [ -n "$USE_SDIST" ] && [ $# -eq 0 ]; then
# use an up-to-date pip / setuptools inside the venv
$PIP install -U virtualenv
+ # ensure some warnings are not issued
+ export CFLAGS=$CFLAGS" -Wno-sign-compare -Wno-unused-result"
$PYTHON setup.py sdist
# Make another virtualenv to install into
virtualenv --python=`which $PYTHON` venv-for-wheel