summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-10-04 20:31:30 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-10-04 20:32:16 +0200
commitcd0b8e7031fa16a60b22b74f1b0273ca60d58668 (patch)
treebb77058d1b81dfb705dfaf7117d8cbbfed4d5b87 /tools
parent58350f4608a22f4b4b66795f51eaefc206bd02b8 (diff)
parent43ca904f79ced66552ff02e7e92da1c4566beadd (diff)
downloadpython-numpy-cd0b8e7031fa16a60b22b74f1b0273ca60d58668.tar.gz
python-numpy-cd0b8e7031fa16a60b22b74f1b0273ca60d58668.tar.bz2
python-numpy-cd0b8e7031fa16a60b22b74f1b0273ca60d58668.zip
Merge pull request #5149 from charris/fix-ma-docs-for-OO-option
BUG: Make numpy import when run with Python flag '-OO
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index f342aa7b1..17d520891 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -88,6 +88,7 @@ run_test()
if [ -n "$USE_DEBUG" ]; then
export PYTHONPATH=$PWD
fi
+
# We change directories to make sure that python won't find the copy
# of numpy in the source directory.
mkdir -p empty
@@ -109,6 +110,10 @@ if [ -n "$USE_DEBUG" ]; then
PYTHON=python3-dbg
fi
+if [ -n "$PYTHON_OO" ]; then
+ PYTHON="$PYTHON -OO"
+fi
+
export PYTHON
export PIP
if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then