Repository navigation
Conversation
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.
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 ( |
isuruf
marked this pull request as draft
October 28, 2026 20:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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