Skip to content

Prefer native Linux tags before manylinux#1187

Open
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:codex/linux-tags-before-manylinux
Open

Prefer native Linux tags before manylinux#1187
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:codex/linux-tags-before-manylinux

Conversation

@Sean-Kenneth-Doherty
Copy link
Copy Markdown

@Sean-Kenneth-Doherty Sean-Kenneth-Doherty commented May 17, 2026

Summary

  • prefer native linux_* platform tags before manylinux and musllinux on Linux
  • keep generating manylinux/musllinux compatibility tags immediately after the native platform tags
  • update order-sensitive tag tests and the unreleased changelog

Fixes #160.

Rationale

Issue #160 describes the expectation that a wheel built for the current Linux machine should be preferred over a more generic redistributable manylinux/musllinux wheel. The issue was reopened in 2024, and a maintainer signaled that the ordering change makes sense.

Validation

  • uv run --with pytest --with pretend pytest tests/test_tags.py -q
  • uv run --with ruff ruff check src/packaging/tags.py tests/test_tags.py
  • uv run --with ruff ruff format --check src/packaging/tags.py tests/test_tags.py
  • TMPDIR=$PWD/.tmp PIP_CACHE_DIR=$PWD/.tmp/pip-cache uv run --with nox nox -s lint
  • uv run --with nox nox -s tests-3.13
  • git diff --check origin/main...HEAD

Note: the first lint run hit the local /tmp disk quota while creating an isolated build environment. Re-running with a repo-local TMPDIR/PIP_CACHE_DIR passed cleanly; the temporary cache was removed afterward.

Assisted-by: OpenAI Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

manylinux tags should come after linux tags

1 participant