summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-12-20 17:18:00 -0700
committerCharles Harris <charlesr.harris@gmail.com>2017-12-20 20:54:14 -0700
commit952bf1ee0b7979366965cb0e361151dd994052cf (patch)
treee77a976603bfb18036b132d8f158a405ad7cbece /tools
parentff4ce31df7f2b4c2675c8507569199c5b0a227d4 (diff)
downloadnumpy-952bf1ee0b7979366965cb0e361151dd994052cf.tar.gz
MAINT: Workaround for new travis sdist failures.
See https://github.com/travis-ci/travis-ci/issues/8920 .
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-test.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index f3bb576bd..ca9f236a2 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -132,6 +132,7 @@ run_test()
export PYTHON
export PIP
$PIP install setuptools
+
if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
# Build wheel
$PIP install wheel
@@ -153,6 +154,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
+ # temporary workaround for sdist failures.
+ $PYTHON -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
# ensure some warnings are not issued
export CFLAGS=$CFLAGS" -Wno-sign-compare -Wno-unused-result"
$PYTHON setup.py sdist