Add a flag to allow access to system Python packages on recent Linux distributions. #7173

pull/8871/head
Dirk Heinrichs 2025-06-19 12:51:15 +02:00 committed by GitHub
parent 08d250e5ef
commit 44496a300e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ _create_python_virtualenv() {
cd "usr/${APP_NAME}" || exit
# Create the blank venv
"${SYSTEM_PYTHON_PATH}" -m venv venv
"${SYSTEM_PYTHON_PATH}" -m venv --system-site-packages venv
# shellcheck disable=SC1091
. venv/bin/activate

View File

@ -7,7 +7,7 @@ then
fi
echo Creating a blank environment...
python3 -m venv venv || { echo 'ERROR: Failed to create the blank virtual env.' ; exit 1; }
python3 -m venv --system-site-packages venv || { echo 'ERROR: Failed to create the blank virtual env.' ; exit 1; }
echo Activating the virtual environment...
. venv/bin/activate || { echo 'ERROR: Failed to activate the virtual env.' ; exit 1; }