python-versions icon indicating copy to clipboard operation
python-versions copied to clipboard

Adding ARM64 support for Ubuntu to resolve encountered issue on actions/setup-python

Open Joeri-Abbo opened this issue 2 years ago • 9 comments

Hey,

I have created a pull request (PR) to address an issue I encountered on Ubuntu related to the ARM64 architecture. The issue details can be found here: python/issues/678#issuecomment-1564392289.

In this PR, I have added support for ARM64 in the build step, aiming to fix the problem. However, due to the usage of the repository's registry in the test phase, I'm unable to validate the change at the moment.

I kindly request your review and consideration of this PR. I would greatly appreciate any feedback or guidance you can provide on how to validate the effectiveness of this modification.

Thank you for your time and attention. I look forward to working with you to resolve this issue and improve compatibility for Ubuntu users on ARM64.

Best regards, Joeri

Joeri-Abbo avatar May 27 '23 11:05 Joeri-Abbo

Hello @Joeri-Abbo. Thank you for your pull requests. But for now we can't approve it because we do not have hosted runners on ubuntu with arm64 architecture.

dmitry-shibanov avatar Jun 05 '23 08:06 dmitry-shibanov

@dmitry-shibanov Can we somehow use QEMU to build it in github actions?

harryzcy avatar Jul 06 '23 03:07 harryzcy

@dmitry-shibanov Can we somehow use QEMU to build it in github actions?

Should be possible to use QEMU for it, yes.

This is currently a blocker for using self-hosted runners too, as if you try to use the action on linux arm64, you cannot.

samip5 avatar Jul 28 '23 11:07 samip5

Hello there, this PR would be amazing for us because we would like to use action/setup-python with linux arm64 runners, and for now it is not possible. Would you be able to use the same runner as @hussein-awala to try this out (summerwind/actions-runner:v2.306.0-ubuntu-20.04)?

V0lantis avatar Aug 25 '23 15:08 V0lantis

it's not necessary to use arm64 hosted runners to build python interpreter - we can use cross-compilation. For this you need additionally install target system compiler (or crossbuild-essential-arm64) and pass extra options to python configure stage:

        --host=aarch64-linux-gnu \
        --build=x86_64-linux-gnu \

ilya-lavrenov avatar Oct 08 '23 19:10 ilya-lavrenov

hi, want to know the status, are we able to merge this or not?

aspexdaniel avatar Dec 04 '23 06:12 aspexdaniel

Hey, would be interested in that too. Can this be merged?

Maleware avatar Jan 09 '24 10:01 Maleware

Hi,

Can't you run that build on a Github provided arm runner? This is an important part of the whole Github Actions ecosystem so you should get everything what you need to bring this to life.

Can you please explain again what holds you of merging this and start to support Linux/arm64 based runners?

I'm happy to help with whatever is needed.

Thanks for your work!

inka avatar Jan 10 '24 12:01 inka

Same. Would love to use BuildJet as hosted ARM runner, but thwarted by this issue.

atwoodjw avatar Feb 23 '24 04:02 atwoodjw

Looks like this was recently addressed in https://github.com/actions/python-versions/pull/274 so this PR can now be closed

chris-griffin avatar Jun 15 '24 16:06 chris-griffin

The fix is also waiting for #289 to make the versions available to consumers.

corrylc avatar Jun 17 '24 20:06 corrylc