From fe0dee88d85f2710ba3d585816aefc69868ab72c Mon Sep 17 00:00:00 2001 From: minqiyang Date: Thu, 29 Nov 2018 10:44:19 +0800 Subject: [PATCH] Change pip version to correct version when install wheel package test=develop --- paddle/scripts/paddle_build.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index a6720fa798e..dbb73f7a27a 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -440,11 +440,29 @@ EOF ctest --output-on-failure -j $1 # make install should also be test when unittest make install -j 8 - pip install --user ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl + if [ "$1" == "cp27-cp27m" ]; then + pip install --user ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl + elif [ "$1" == "cp35-cp35m" ]; then + pip3.5 install --user ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl + elif [ "$1" == "cp36-cp36m" ]; then + pip3.6 install --user ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl + elif [ "$1" == "cp37-cp37m" ]; then + pip3.7 install --user ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl + fi + if [[ ${WITH_FLUID_ONLY:-OFF} == "OFF" ]] ; then paddle version fi - pip uninstall -y paddlepaddle + + if [ "$1" == "cp27-cp27m" ]; then + pip uninstall -y paddlepaddle + elif [ "$1" == "cp35-cp35m" ]; then + pip3.5 uninstall -y paddlepaddle + elif [ "$1" == "cp36-cp36m" ]; then + pip3.6 uninstall -y paddlepaddle + elif [ "$1" == "cp37-cp37m" ]; then + pip3.7 uninstall -y paddlepaddle + fi fi } -- GitLab