From ec6068b187c679727246ebbed43468d56e274cb6 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Thu, 25 May 2017 13:45:37 +0800 Subject: [PATCH] Tinker with TravisCI --- paddle/scripts/run_python_tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/scripts/run_python_tests.sh b/paddle/scripts/run_python_tests.sh index 6dfc05a9497..1ed497aaecc 100755 --- a/paddle/scripts/run_python_tests.sh +++ b/paddle/scripts/run_python_tests.sh @@ -24,6 +24,8 @@ PYTHON=$1; shift if [ $USE_VIRTUALENV_FOR_TEST -ne 0 ]; then rm -rf .test_env virtualenv .test_env + unset PYTHONHOME + unset PYTHONPATH source .test_env/bin/activate PYTHON=python fi @@ -32,6 +34,8 @@ $PYTHON -m pip install $SCRIPTPATH/../dist/*.whl if [ "X${PADDLE_PACKAGE_DIR}" != "X" ]; then $PYTHON -m pip install ${PADDLE_PACKAGE_DIR}/*.whl +else + export PYTHONPATH=$SCRIPTPATH/../../python/ fi $PYTHON -m pip install ipython==5.3 -- GitLab