Skip to content

Commit 29394d0

Browse files
authored
fix: use environment variable for PIP_ROOT_USER_ACTION (#259)
The option does not exists in every pip version, using the environment variable allows for pip not to fail in this case.
1 parent 3545308 commit 29394d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

installers/macos-pkg-setup-template.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ fi
6969
chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR python
7070

7171
echo "Upgrading pip..."
72+
export PIP_ROOT_USER_ACTION=ignore
7273
./python -m ensurepip
73-
./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location --root-user-action=ignore
74+
./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location
7475

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

0 commit comments

Comments
 (0)