提交 125f36b6 编写于 作者: T tianshuo78520a

update mac filed exit

上级 25c032bb
...@@ -347,27 +347,52 @@ function PipLinuxInstall(){ ...@@ -347,27 +347,52 @@ function PipLinuxInstall(){
if [[ "$GPU" == "gpu" ]];then if [[ "$GPU" == "gpu" ]];then
if [[ ${AVX} == "avx" ]];then if [[ ${AVX} == "avx" ]];then
rm -rf `echo $wheel_gpu_release|awk -F '/' '{print $NF}'` rm -rf `echo $wheel_gpu_release|awk -F '/' '{print $NF}'`
wget $wheel_gpu_release wget -q $wheel_gpu_release
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_release if [ "$?" != "0" ];then
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_release
else
echo paddlepaddle whl包下载失败
exit 1
fi
else else
rm -rf `echo $wheel_gpu_release_novax|awk -F '/' '{print $NF}'` rm -rf `echo $wheel_gpu_release_novax|awk -F '/' '{print $NF}'`
wget $wheel_gpu_release_novax wget -q $wheel_gpu_release_novax
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_release_noavx if [ "$?" != "0" ];then
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_release_noavx
else
echo paddlepaddle whl包下载失败
exit 1
fi
fi fi
else else
rm -rf `echo $wheel_cpu_release|awk -F '/' '{print $NF}'` rm -rf `echo $wheel_cpu_release|awk -F '/' '{print $NF}'`
wget $wheel_cpu_release wget -q $wheel_cpu_release
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_cpu_release if [ "$?" != "0" ];then
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_cpu_release
else
echo paddlepaddle whl包下载失败
exit 1
fi
fi fi
else else
if [[ "$GPU" == "gpu" ]];then if [[ "$GPU" == "gpu" ]];then
rm -rf `echo $wheel_gpu_develop|awk -F '/' '{print $NF}'` rm -rf `echo $wheel_gpu_develop|awk -F '/' '{print $NF}'`
wget $wheel_gpu_develop wget -q $wheel_gpu_develop
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_develop if [ "$?" != "0" ];then
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_develop
else
echo paddlepaddle whl包下载失败
exit 1
fi
else else
rm -rf `echo $wheel_cpu_develop|awk -F '/' '{print $NF}'` rm -rf `echo $wheel_cpu_develop|awk -F '/' '{print $NF}'`
wget $wheel_cpu_develop wget -q $wheel_cpu_develop
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_cpu_develop if [ "$?" != "0" ];then
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_cpu_develop
else
echo paddlepaddle whl包下载失败
exit 1
fi
fi fi
fi fi
} }
...@@ -748,6 +773,7 @@ function macos() { ...@@ -748,6 +773,7 @@ function macos() {
echo"" echo""
echo "==========================================================================================" echo "=========================================================================================="
echo"" echo""
exit 1
fi fi
else else
wget ${path}$wheel_cpu_release -O $whl_cpu_release wget ${path}$wheel_cpu_release -O $whl_cpu_release
...@@ -763,6 +789,7 @@ function macos() { ...@@ -763,6 +789,7 @@ function macos() {
echo"" echo""
echo "==========================================================================================" echo "=========================================================================================="
echo"" echo""
exit 1
fi fi
else else
rm $whl_cpu_release rm $whl_cpu_release
...@@ -770,6 +797,7 @@ function macos() { ...@@ -770,6 +797,7 @@ function macos() {
echo"" echo""
echo "==========================================================================================" echo "=========================================================================================="
echo"" echo""
exit 1
fi fi
fi fi
else else
...@@ -784,6 +812,7 @@ function macos() { ...@@ -784,6 +812,7 @@ function macos() {
echo"" echo""
echo "==========================================================================================" echo "=========================================================================================="
echo"" echo""
exit 1
fi fi
else else
wget ${path}$whl_cpu_develop -O $whl_cpu_develop wget ${path}$whl_cpu_develop -O $whl_cpu_develop
...@@ -799,6 +828,7 @@ function macos() { ...@@ -799,6 +828,7 @@ function macos() {
echo"" echo""
echo "==========================================================================================" echo "=========================================================================================="
echo"" echo""
exit 1
fi fi
else else
rm $whl_cpu_develop rm $whl_cpu_develop
...@@ -806,6 +836,7 @@ function macos() { ...@@ -806,6 +836,7 @@ function macos() {
echo"" echo""
echo "==========================================================================================" echo "=========================================================================================="
echo"" echo""
exit 1
fi fi
fi fi
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册