diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-10-04 20:31:30 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-10-04 20:32:16 +0200 |
commit | cd0b8e7031fa16a60b22b74f1b0273ca60d58668 (patch) | |
tree | bb77058d1b81dfb705dfaf7117d8cbbfed4d5b87 /tools | |
parent | 58350f4608a22f4b4b66795f51eaefc206bd02b8 (diff) | |
parent | 43ca904f79ced66552ff02e7e92da1c4566beadd (diff) | |
download | python-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-x | tools/travis-test.sh | 5 |
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 |