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

Wheels for aarch64 platform (AWS Graviton2 arm64) #81

Open
thiezn opened this issue Mar 21, 2023 · 3 comments
Open

Wheels for aarch64 platform (AWS Graviton2 arm64) #81

thiezn opened this issue Mar 21, 2023 · 3 comments

Comments

@thiezn
Copy link

thiezn commented Mar 21, 2023

Hi,

Thanks for the great library! Would it be possible to add wheels for the aarch64 platform in future releases? I'm not 100% sure how difficult this would be, but it seems cibuildwheel does support the architecture.

The use case is that this will allow you to easily leverage the library on the new(ish) AWS Lambda Graviton2 architecture arm64. At the moment you have to jump through a few hoops to ensure you build the library for the proper platform.

Workaround

The current way to tackle this is to leverage AWS SAM cli using sam build --use-container. To build it properly from an AWS Lambda Layer you have to specify both the compatible architecture and the BuildArchitecture:

  LamdaLayer:
    Type: AWS::Serverless::LayerVersion
    Properties:
      LayerName: name-of-layer
      ContentUri: ./src/my-layer
      CompatibleRuntimes:
        - python3.9
      CompatibleArchitectures:
        - arm64
      Metadata:
        BuildMethod: makefile
        BuildArchitecture: arm64

Also check this stackoverflow issue.

@rushter
Copy link
Owner

rushter commented Mar 22, 2023

Hi, I can add it but I don't have time to test it right now. So, a working PR would be appreciated.

@thiezn
Copy link
Author

thiezn commented Mar 22, 2023

I had a look at the runners GitHub provides but unfortunately they are currently only on x86. The only option would be then to use a sef-hosted runner or wait for github.com to offer arm64/aarch64 runners in the future.

You can close the issue or leave it for future reference if preferred.

@rushter
Copy link
Owner

rushter commented Mar 22, 2023

We already have builds for aarch64 using qemu. Not sure why they don't work on AWS.

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

No branches or pull requests

2 participants