Skip to content

Commit

Permalink
Copy the python used to create the venv into the venv itself (#5729)
Browse files Browse the repository at this point in the history
This is now safe, because when python on the system gets updated, we detect the change and rebuilds the Python-modules.
  • Loading branch information
ktf authored Jan 9, 2025
1 parent 6fa1566 commit 4f0380b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ unset VIRTUAL_ENV
# NOTE: If you get an error saying "Error: This build of python cannot create
# venvs without using symlinks", then you are using the MacOS Python. You
# should be using the Homebrew Python instead, so run "brew install python".
python3 -m venv "$INSTALLROOT"
python3 -m venv --copies "$INSTALLROOT"
. "$INSTALLROOT/bin/activate"
# From now on, we use the python3 binary copied into the venv. This makes pip
# install packages into the venv.
Expand Down

0 comments on commit 4f0380b

Please sign in to comment.