Commit 5842f62b authored by David's avatar David
Browse files

macOS Detect local installation of python3

Since python3 is now mandatory for meson and co, try to detect
a packaged install and add it to the path.
Note that /usr/local/bin is not added completely, to avoid
interference with homebrew.
parent 2b678c7d
......@@ -39,7 +39,13 @@ vlcSetBaseEnvironment() {
export CXX="$(xcrun --find clang++)"
export OBJC="$(xcrun --find clang)"
export OBJCXX="$(xcrun --find clang++)"
export PATH="${VLC_ROOT_DIR}/extras/tools/build/bin:${VLC_ROOT_DIR}/contrib/${LOCAL_TRIPLET}/bin:${VLC_PATH}:/bin:/sbin:/usr/bin:/usr/sbin"
python3Path=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')
if [ ! -d "$python3Path" ]; then
export PATH="${VLC_ROOT_DIR}/extras/tools/build/bin:${VLC_ROOT_DIR}/contrib/${LOCAL_TRIPLET}/bin:$python3Path:${VLC_PATH}:/bin:/sbin:/usr/bin:/usr/sbin"
vlcSetSymbolEnvironment() {
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