diff --git a/pkg/linux/build-functions.sh b/pkg/linux/build-functions.sh index 9eb5b1b49..038d02417 100644 --- a/pkg/linux/build-functions.sh +++ b/pkg/linux/build-functions.sh @@ -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 diff --git a/tools/setup-python-env.sh b/tools/setup-python-env.sh index 58d414df6..43d1275d0 100755 --- a/tools/setup-python-env.sh +++ b/tools/setup-python-env.sh @@ -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; }