Skip to content

Commit

Permalink
fix: use environment variable for PIP_ROOT_USER_ACTION (#259)
Browse files Browse the repository at this point in the history
The option does not exists in every pip version, using the environment variable allows for pip not to fail in this case.
  • Loading branch information
mayeut authored Apr 25, 2024
1 parent 3545308 commit 29394d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installers/macos-pkg-setup-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ fi
chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR python

echo "Upgrading pip..."
export PIP_ROOT_USER_ACTION=ignore
./python -m ensurepip
./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location --root-user-action=ignore
./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location

echo "Install OpenSSL certificates"
sh -e "${PYTHON_APPLICATION_PATH}/Install Certificates.command"
Expand Down

0 comments on commit 29394d0

Please sign in to comment.