Skip to content

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

@suhaibmujahid

Description

@suhaibmujahid

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

&& rustup toolchain install nightly --target x86_64-unknown-linux-musl \
should be easy
same as building,
RUN maturin build --target x86_64-unknown-linux-musl --manylinux off

what might be harder is building musl for arm64
&& make install -j$(expr $(nproc) \+ 1) \

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions