Build wheels for Apple Silicon M1 and and Linux ARM64/aarch64

Open
#44 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, python, rust

Research direction

Start by reviewing the referenced Dockerfile lines 16, 21, and 42, along with the manylinux aarch64 approach from the discussion. Update the Rust toolchain and maturin CLI configuration for ARM64, then verify that wheels are produced for Apple Silicon and Linux ARM64/aarch64, including the musl case.

Written by the indexing model from the issue text.

Description

A Docker container on an Apple Silicon M1 can be used to produce a Linux ARM64 environment. Building a manylinux wheel (e.g., manylinux2014-aarch64) can be the way to go.

From Discussion in the Matrix Room

@calixteman:

there is a manylinux for aarch64: https://github.com/pypa/manylinux
so I'd say that it should be fine to use the correct docker image for manylinux aarch64
update the rust toolchain
update the cli for maturin

@marco-c

installing another toolchain in https://github.com/mozilla/pyo3-parsepatch/blob/a568c66a508a8a56ebb2386087c5b0c0f6fe0c9c/Dockerfile#L21 should be easy
same as building, https://github.com/mozilla/pyo3-parsepatch/blob/a568c66a508a8a56ebb2386087c5b0c0f6fe0c9c/Dockerfile#L42
what might be harder is building musl for arm64
https://github.com/mozilla/pyo3-parsepatch/blob/a568c66a508a8a56ebb2386087c5b0c0f6fe0c9c/Dockerfile#L16

Dominant language
Rust
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/pyo3-parsepatch

All issues in mozilla/pyo3-parsepatch

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.