Skip to content
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

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

mayeut
Copy link
Contributor

@mayeut mayeut commented Feb 17, 2024

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

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@mayeut mayeut Mar 13, 2024

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.

@HarithaVattikuti HarithaVattikuti merged commit 29394d0 into actions:main Apr 25, 2024
18 checks passed
mayeut added a commit to mayeut/python-versions that referenced this pull request Apr 26, 2024
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
HarithaVattikuti pushed a commit that referenced this pull request Apr 29, 2024
* 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
@mayeut mayeut deleted the python-3.9 branch May 4, 2024 10:46
EliahKagan added a commit to EliahKagan/GitPython that referenced this pull request Jul 24, 2024
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants