mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-01 15:53:03 -06:00
Add a flag to allow access to system Python packages on recent Linux distributions. #7173
This commit is contained in:
1 parent
08d250e5ef
commit
44496a300e
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user