Skip to content

Commit 7e7cf8c

Browse files
authored
Update paddle_build.sh
1 parent eae6033 commit 7e7cf8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ function cmake_gen() {
6969
PYTHON_FLAGS=""
7070
SYSTEM=`uname -s`
7171
if [ "$SYSTEM" == "Darwin" ]; then
72-
if [ "$1" == "cp27-cp27m" || "$1" == "" ]; then
72+
if [[ "$1" == "cp27-cp27m" ]] || [[ "$1" == "" ]]; then
7373
echo "using python abi: $1"
7474
if [ -d "/Library/Frameworks/Python.framework/Versions/2.7" ]; then
7575
export LD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/2.7
7676
export DYLD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/2.7
77-
export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin/:{PATH}
77+
export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin/:${PATH}
7878
PYTHON_FLAGS="-DPYTHON_EXECUTABLE:FILEPATH=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
7979
-DPYTHON_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
8080
-DPYTHON_LIBRARY:FILEPATH=/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib"

0 commit comments

Comments
 (0)