Skip to content

Pass manylinux platform tags to crossenv - #110

Draft
isuruf wants to merge 1 commit into
conda-forge:mainfrom
isuruf:manylinux-platform-tags
Draft

isuruf wants to merge 1 commit into
conda-forge:mainfrom
isuruf:manylinux-platform-tags

Conversation

@isuruf

@isuruf isuruf commented Oct 28, 2026

Copy link
Copy Markdown
Member

crossenv 1.6.0 started applying its `packaging.tags` patch to pip's vendored copy (robotpy/crossenv@3d00f75). Without `--platform-tag`, pip in the cross environment now only accepts `linux_` wheels, so installing an auditwheel-repaired `manylinux` wheel fails with `is not a supported wheel on this platform`. This broke e.g. symengine-wheels cross builds after crossenv was updated to 1.6.1 here.

With crossenv 1.5.0 those wheels were accepted: pip's vendored packaging was not patched, and crossenv's `_manylinux.py` (which also disables manylinux tags) lives in `venv/cross`, which we delete.

This restores that behaviour by reading the glibc version from `$CONDA_BUILD_SYSROOT/usr/include/features.h` and passing `linux_` plus all `manylinux_2__` tags (and the legacy aliases) up to that version. Tags need the arch suffix since crossenv yields them verbatim. Nothing changes for osx targets or when no sysroot is found. Also bumps the crossenv lower bound to 1.4.0, which added `--platform-tag`.

Tested locally with crossenv 1.6.1 and pip 26.2.2 against an aarch64 python: `pip debug --verbose` lists `manylinux2014_aarch64` and `manylinux_2_17_aarch64` with a 2.17 sysroot, and `manylinux_2_17`..`manylinux_2_28` with a 2.28 sysroot.

🤖 Generated with Claude Code

crossenv>=1.6 patches pip's vendored packaging.tags, so pip in the cross
environment only accepts linux_<arch> wheels unless platform tags are
given. Previously crossenv's _manylinux.py disabled manylinux tags, but
it is removed when we delete venv/cross, so manylinux wheels used to be
accepted. Restore that by declaring the manylinux tags supported by the
sysroot's glibc.
@isuruf
isuruf requested a review from chrisburr as a code owner October 28, 2026 18:47
@conda-forge-admin

Copy link
Copy Markdown
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe/recipe.yaml) and found it was in an excellent condition.

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.

2 participants