From 5cf86058c61088a5174eeacc2f7f9a163fd43dc3 Mon Sep 17 00:00:00 2001
From: velconia <velconias@gmail.com>
Date: Fri, 28 Sep 2018 13:00:07 +0800
Subject: [PATCH] Fix pip install in mac

test=develop
---
 paddle/scripts/paddle_build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh
index c397f070e..1a5076f1d 100755
--- a/paddle/scripts/paddle_build.sh
+++ b/paddle/scripts/paddle_build.sh
@@ -384,7 +384,7 @@ EOF
         ctest --output-on-failure -j $1     
         # make install should also be test when unittest 
         make install -j 8
-        pip install /usr/local/opt/paddle/share/wheels/*.whl
+        pip install ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl
         if [[ ${WITH_FLUID_ONLY:-OFF} == "OFF" ]] ; then
             paddle version
         fi
-- 
GitLab