提交 71019802 编写于 作者: E emailweixu 提交者: GitHub

Update run_python_tests.sh

上级 883cb227
...@@ -20,8 +20,6 @@ popd > /dev/null ...@@ -20,8 +20,6 @@ popd > /dev/null
USE_VIRTUALENV_FOR_TEST=$1; shift USE_VIRTUALENV_FOR_TEST=$1; shift
PYTHON=$1; shift PYTHON=$1; shift
echo python: $PYTHON
pip list
if [ $USE_VIRTUALENV_FOR_TEST -ne 0 ]; then if [ $USE_VIRTUALENV_FOR_TEST -ne 0 ]; then
rm -rf .test_env rm -rf .test_env
...@@ -29,24 +27,9 @@ if [ $USE_VIRTUALENV_FOR_TEST -ne 0 ]; then ...@@ -29,24 +27,9 @@ if [ $USE_VIRTUALENV_FOR_TEST -ne 0 ]; then
source .test_env/bin/activate source .test_env/bin/activate
PYTHON=python PYTHON=python
fi fi
export PYTHONPATH=
$PYTHON -m pip install $SCRIPTPATH/../dist/*.whl export PYTHONPATH=$SCRIPTPATH/../../python/
# The next line is for debug, will be deleted $PYTHON -m pip install $SCRIPTPATH/../dist/*.wh requests matplotlib ioython==5.
$PYTHON -m pip list
$PYTHON -m pip install requests matplotlib numpy ipython==5.3
$PYTHON -m pip list
echo $PYTHON
echo PYTHONPATH: $PYTHONPATH
ls $PYTHONPATH
python -c 'import numpy; import pkgutil; print numpy.__path__; print(str(list(pkgutil.iter_modules(numpy.__path__))))'
python -c 'import pkgutil; print(str(list(pkgutil.iter_modules("/opt/python/2.7.12/lib/python2.7/site-packages"))))'
echo "========================="
python -c 'import numpy; import google; print(dir(google)); import google.protobuf; import pkgutil; print(str(list(pkgutil.iter_modules(google.protobuf.__path__)))); import google.protobuf.descriptor; '
echo $PYTHON
echo PYTHONPATH: $PYTHONPATH
$PYTHON -c 'import numpy; import google.protobuf.descriptor; print("debug---------------")'
export PYTHONPATH=$PYTHONPATH:$SCRIPTPATH/../../python/
$PYTHON -c 'import numpy; import google.protobuf.descriptor; print("debug---------------")'
for fn in "$@" for fn in "$@"
do do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册