Skip to content

ENH: can we have musl-aarch64 prebuilt binary as well? #24934

Closed

Description

@tuananh

Proposed new feature or change:

I'm noticing even with latest release, we dont have musl-aarch64; only amd64

Any technical reason for that?

Activity

  1. andyfaff commented on Oct 16, 2023

    @andyfaff
    Member

    No technical reasons. However, CI resources for building that target will be a factor. We tend to focus on the most popular targets for pre-built binaries. It's not clear how widespread musllinux_aarch64 is.

  2. tuananh commented on Oct 16, 2023

    @tuananh
    Author

    multiarch images are catching up the trend. I think the demand for this will be higher. Can i keep this issue open to see the interest in this?

  3. rgommers commented on Oct 17, 2023

    @rgommers
    Member

    I've indeed seen more frequent mentions of multi-arch images, and Docker seems to be making a push for those (see, e.g., this intro blog post). It's not yet clear to me if there's any common groups of platform tags being used together that is emerging - maybe through higher-level build tooling. @tuananh what's the set of platforms you are trying to build for?

  4. tuananh commented on Oct 17, 2023

    @tuananh
    Author

    I've indeed seen more frequent mentions of multi-arch images, and Docker seems to be making a push for those (see, e.g., this intro blog post). It's not yet clear to me if there's any common groups of platform tags being used together that is emerging - maybe through higher-level build tooling. @tuananh what's the set of platforms you are trying to build for?

    We have mix-arch cluster at work and building multiarch images by default (amd64 and arm64).

  5. rgommers commented on Oct 17, 2023

    @rgommers
    Member

    Thanks. And the musl part is a custom choice? Or you're building both with glibc and musl?

  6. tuananh commented on Oct 17, 2023

    @tuananh
    Author

    Thanks. And the musl part is a custom choice? Or you're building both with glibc and musl?

    we use images that use musl (alpine) and some use glibc (wolfi & others) so it would be nice to have both

  7. andyfaff commented on Oct 18, 2023

    @andyfaff
    Member

    Just a clearer explanation of the cost:

    • maintaining more wheels incurs extra time and effort required by the developers.
    • native building of musllinux_aarch64 requires use of Cirrus-CI which comes at a monetary cost to the numpy project. It helps if companies are able to provide sponsorship to offset that cost.
  8. der-eismann commented on Oct 23, 2023

    @der-eismann

    Same here, we normally use Alpine-based containers, but our colleagues on Apple Silicon machines can't build these images because of the missing musllinux wheels. Would be great if they could be added, since the difference in image size can be huge (127 MB on python-alpine vs 204 MB on python-slim).

  9. rgommers commented on Oct 23, 2023

    @rgommers
    Member

    Thanks @der-eismann, that use case makes sense. I didn't think about this before, but Apple switching to arm64 makes musllinux more relevant if one thinks about "Docker recipe should run the same across Linux, macOS and Windows machines" kind of requirement (and Windows on Arm may add to that).

    I will note that on macOS there should be a workaround right now (from this SO question) - slower but should make things work:

    export DOCKER_DEFAULT_PLATFORM=linux/amd64
  10. der-eismann commented on Oct 23, 2023

    @der-eismann

    Hey @rgommers, you're right, that workaround does help a bit, but in theory only for building the image. Actually running numpy workloads in an emulated environment is incredibly slow, we're talking about factor 20-100. So I get that it costs money and everything to push this additional wheel, but it would be highly appreciated 🙂

  11. rgommers commented on Oct 24, 2023

    @rgommers
    Member

    It seems like the case for this is reasonable, and it wouldn't be too hard to do (assuming that there aren't unexpected test failures of course) - WDYT about starting to add these wheels @andyfaff, @charris, @mattip?

  12. andyfaff commented on Oct 24, 2023

    @andyfaff
    Member

    Straightforward, I'll get onto it. It'll be on cirrus

  13. rgommers commented on Dec 22, 2023

    @rgommers
    Member

    These are up on https://anaconda.org/scientific-python-nightly-wheels/numpy/files, so I'll close this issue.

    Thanks for adding them @andyfaff, and for the input everyone else.

  14. added this to the 2.0.0 release milestone on Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions