-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use environment variable for PIP_ROOT_USER_ACTION
#259
Conversation
The option does not exists in every pip version, using the environment variable allows for pip not to fail in this case.
./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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this same issue occurs for linux runners: https://github.com/jmarrec/python-versions/actions/runs/8250002087/job/22564591071#step:6:30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Linux, where python is built from sources, the issue occurs for non latest patch versions or EOL versions.
All latest patch versions for python 3.7+ are embedding pip>=22.1 which support this options.
This extends the fix from actions#259 since every platform for 3.8.10 / 3.9.13 has been rebuilt instead of just macOS arm64 being added. The regression was introduced in actions#223
…ctions/python-versions#259 fixed)
* fix: error out on install failure in "Apply build artifact to the local machine" step * fix: error out on pip installation / update failure * fix: use environment variable for `PIP_ROOT_USER_ACTION` This extends the fix from #259 since every platform for 3.8.10 / 3.9.13 has been rebuilt instead of just macOS arm64 being added. The regression was introduced in #223
These were excluded in 9ad28c3 (gitpython-developers#1817) due to actions/setup-python#808, which was later fixed by actions/python-versions#259. Because Python 3.7 has been end-of-life for a while, it is very unlikely to have AArch64 builds added in python-versions for use on GitHub Actions CI runners (preinstalled or via setup-python).
The option does not exists in every pip version, using the environment variable allows for pip not to fail in this case.
This is required to build macOS arm64 packages of python 3.8 & 3.9 as requested in actions/setup-python#808
builds can be seen in https://github.com/mayeut/python-versions/actions/workflows/build-python-packages.yml