Skip to content

manylinux: don't accept glibc below 2.17 on arm, ppc64le, s390x and riscv64 #79

Closed

Description

@patrickballard

manylinux_platforms() in src/wheelgap/targets.py generates manylinux_2_* tags from your --glibc down to manylinux_2_5 for every architecture. pip (via packaging) only goes down to 2.17 for anything other than x86_64 and i686, because those platforms never had an older manylinux. So linux-aarch64 (and the new linux-armv7l, linux-ppc64le, linux-s390x and linux-riscv64) accept a manylinux_2_12_aarch64 wheel that pip would refuse.

No real wheel like that is likely on PyPI, but wheelgap should agree with pip exactly.

What to do

  • In manylinux_platforms, stop at minor 17 unless arch is x86_64 or i686. You can check against packaging._manylinux.platform_tags, which uses too_old_glibc2 = 2.16 for other arches.
  • Tests in tests/test_targets.py: manylinux_2_12_aarch64 is rejected on linux-aarch64, and manylinux_2_12_x86_64 is still accepted on linux-x86_64.
  • A CHANGELOG line under ## Unreleased.

Activity

  1. added
    bug
    good first issue
    on Nov 9, 2026
  2. shounakjoshi88-a11y commented on Nov 9, 2026

    @shounakjoshi88-a11y
    Contributor

    I'd like to take this.

  3. patrickballard commented on Nov 9, 2026

    @patrickballard
    CollaboratorAuthor

    Thanks @shounakjoshi88-a11y, go ahead, it's yours! I see you've already opened #92 for it. I've started CI on it, and it'll get a full review once the checks finish. If you haven't seen it yet, CONTRIBUTING.md covers setup and the checks we run, and questions are always welcome in Discussions.

    (Reply assisted by Claude.)

  4. added a commit that references this issue on Nov 9, 2026
    43f7f58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions