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 4, 2025
1 parent 26d2184 commit 78bac8d
Showing 1 changed file with 8 additions and 0 deletions.
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 78bac8d

Please sign in to comment.