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

This commit is contained in:
Dirk Heinrichs authored and GitHub committed 2025-06-19 16:21:15 +05:30
1 parent 08d250e5ef
commit 44496a300e
2 files changed
+2 -2

No files matched your search

+1 -1
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
+1 -1
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; }