From 0145e8197ef6d7eda7c12119e7bf1d0a0175f4f8 Mon Sep 17 00:00:00 2001 From: Sergio Date: Tue, 4 Feb 2025 11:05:53 +0100 Subject: [PATCH] Force unset PYTHONHOME/PYTHONPATH --- clang.sh | 6 ++++++ python.sh | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/clang.sh b/clang.sh index 72d1eaa0e4..7ebe7eb5f5 100644 --- a/clang.sh +++ b/clang.sh @@ -41,8 +41,14 @@ esac # If we have our own python, use it if [ -n "$PYTHON_REVISION" ]; then export PYTHON_HOME="$PYTHON_ROOT" + which -a python + which -a python3 + # if [ -n "$VIRTUAL_ENV" ]; then + # deactivate + # fi fi + # BUILD_SHARED_LIBS=ON is needed for e.g. adding dynamic plugins to clang-tidy. # Apache Arrow needs LLVM_ENABLE_RTTI=ON. cmake "$SOURCEDIR/llvm" \ diff --git a/python.sh b/python.sh index 27bd9c3660..062948323a 100644 --- a/python.sh +++ b/python.sh @@ -45,24 +45,32 @@ prefer_system_replacement_specs: env: PYTHON_ROOT: $(brew --prefix python3) PYTHON_REVISION: "" + PYTHONHOME: "" + PYTHONPATH: "" "python3.*": env: # Python is in path, so we need a dummy placeholder for PYTHON_ROOT # to avoid having /bin in the middle of the path. PYTHON_ROOT: "/dummy-python-folder" PYTHON_REVISION: "" + PYTHONHOME: "" + PYTHONPATH: "" # Workaround to support old alibuild versions that don't regex match alibuild_system_replace "python-brew3": env: PYTHON_ROOT: $(brew --prefix python3) PYTHON_REVISION: "" + PYTHONHOME: "" + PYTHONPATH: "" "python3": env: # Python is in path, so we need a dummy placeholder for PYTHON_ROOT # to avoid having /bin in the middle of the path. PYTHON_ROOT: "/dummy-python-folder" PYTHON_REVISION: "" + PYTHONHOME: "" + PYTHONPATH: "" --- rsync -av --exclude '**/.git' $SOURCEDIR/ $BUILDDIR/