Skip to content

Commit 43d70de

Browse files
committed
Reinstall Python packages regardless of their presence in the system-wide installation.
1 parent 6fab59a commit 43d70de

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/linux/build-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ _create_python_virtualenv() {
7272
pip3 install wheel
7373

7474
# Install the requirements
75-
pip3 install --no-cache-dir --no-binary psycopg -r "${SOURCEDIR}/requirements.txt"
75+
pip3 install --force-reinstall --no-cache-dir --no-binary psycopg -r "${SOURCEDIR}/requirements.txt"
7676

7777
# Fixup the paths in the venv activation scripts
7878
sed -i 's/VIRTUAL_ENV=.*/VIRTUAL_ENV="\/usr\/pgadmin4\/venv"/g' venv/bin/activate

tools/setup-python-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pip install --upgrade pip
1818
if [ ${TEST} -eq 1 ];
1919
then
2020
echo Installing requirements for running Python tests...
21-
pip install --no-cache-dir wheel sphinx==7.4.7 sphinxcontrib-youtube -r web/regression/requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; }
21+
pip install --force-reinstall --no-cache-dir wheel sphinx==7.4.7 sphinxcontrib-youtube -r web/regression/requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; }
2222
else
2323
echo Installing requirements for executing and building only...
24-
pip install --no-cache-dir wheel sphinx==7.4.7 sphinxcontrib-youtube -r requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; }
24+
pip install --force-reinstall --no-cache-dir wheel sphinx==7.4.7 sphinxcontrib-youtube -r requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; }
2525
fi

0 commit comments

Comments
 (0)