Commit 2c5e0911 authored by Soomin Lee's avatar Soomin Lee

buildscript: Fetch python3 path during buildLibVLC

parent d8103577
......@@ -253,6 +253,10 @@ buildLibVLC() {
export OBJCFLAGS="${OBJCFLAGS}"
export LDFLAGS="${LDFLAGS}"
fetch_python3_path
export PATH="${PYTHON3_PATH}:${VLCROOT}/extras/tools/build/bin:${VLCROOT}/contrib/${TARGET}/bin:${VLC_PATH}:/usr/bin:/bin:/usr/sbin:/sbin"
spushd ${VLCROOT}/contrib
info "Compiling third-party libraries"
......@@ -1069,15 +1073,12 @@ if [ "$VLCROOT" = "" ]; then
spopd
fi
# get python installation
python3Path=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')
if [ ! -d "$python3Path" ]; then
python3Path=""
fi
export PATH="$python3Path:${VLCROOT}/extras/tools/build/bin:${VLCROOT}/contrib/${TARGET}/bin:${VLC_PATH}:/usr/bin:/bin:/usr/sbin:/sbin"
echo `pwd`
fetch_python3_path() {
PYTHON3_PATH=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')
if [ ! -d "${PYTHON3_PATH}" ]; then
PYTHON3_PATH=""
fi
}
#
# Build time
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment