Skip to content

Commit

Permalink
Force unset PYTHONHOME/PYTHONPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Feb 5, 2025
1 parent 26d2184 commit 0145e81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
8 changes: 8 additions & 0 deletions python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 0145e81

Please sign in to comment.