Skip to content

version 1.6.0+ with experimental_index_url are fetching incorrect wheels for glibc version #3250

@scasagrande

Description

@scasagrande

🐞 bug report

Affected Rule

The issue is caused by the rule: rules_python 1.6.0+ when using experimental_index_url

Is this a regression?

Yes, the previous version in which this bug was not present was: 1.5.4

Description

When using rules_python 1.6.0 or 1.6.1 and the experimental_index_url feature, incorrect wheels are fetched for the glibc version on the system. For example, systems with glibc 2.28 are attempting to download and execute manylinux_2_34 wheels instead of manylinux_2_28 ones.

🔬 Minimal Reproduction

https://github.com/scasagrande/rules-python-glibc-issue

🔥 Exception or Error

See repro README

🌍 Your Environment

Operating System:

I specifically tested on Rocky 8

Output of bazel version:

Seen on both 8.3.1 and 8.4.0, but is likely independent of bazel version

Rules_python version:

1.6.0 and 1.6.1 are both exhibiting this behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: pippip/pypi integration

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions