From 49d1d8bf61dfda70ea5bb3745ee7bf0e5012741a Mon Sep 17 00:00:00 2001 From: "Wang,Jeff" Date: Mon, 12 Mar 2018 18:56:59 -0700 Subject: [PATCH] Add python 3 build support. --- docs/release/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/release/build.sh b/docs/release/build.sh index cb780238a..dc392d7fe 100644 --- a/docs/release/build.sh +++ b/docs/release/build.sh @@ -15,6 +15,12 @@ if [ "$1" != "" ]; then export PYTHON_FLAGS="-DPYTHON_EXECUTABLE:FILEPATH=/opt/python/cp27-cp27mu/bin/python -DPYTHON_INCLUDE_DIR:PATH=/opt/python/cp27-cp27mu/include/python2.7 -DPYTHON_LIBRARIES:FILEPATH=/opt/_internal/cpython-2.7.11-ucs4/lib/libpython2.7.so" + elif [ "$1" == "cp35-cp35m" ]; then + export LD_LIBRARY_PATH=/opt/_internal/cpython-3.5.1/lib:${LD_LIBRARY_PATH#/opt/_internal/cpython-3.5.1/lib:} + export PATH=/opt/python/cp35-cp35m/bin/:${PATH} + export PYTHON_FLAGS="-DPYTHON_EXECUTABLE:FILEPATH=/opt/python/cp35-cp35m/bin/python + -DPYTHON_INCLUDE_DIR:PATH=/opt/python/cp35-cp35m/include/python3.5m + -DPYTHON_LIBRARIES:FILEPATH=/opt/_internal/cpython-3.5.1/lib/libpython3.so" fi fi