feat(python): add 3.12.13 and install dev headers to subos sysroot#58
Merged
Sunrisepeak merged 1 commit intomainfrom Mar 22, 2026
Merged
feat(python): add 3.12.13 and install dev headers to subos sysroot#58Sunrisepeak merged 1 commit intomainfrom
Sunrisepeak merged 1 commit intomainfrom
Conversation
…sroot - Add Python 3.12.13 (cpython-standalone) download URL for Linux x86_64 - In config(), copy include/ headers into subos sysroot so that the subos GCC can compile C extensions (evdev, mujoco, dm-tree, etc.) without missing pyconfig.h - Supports multi-version: both 3.12 and 3.13 headers coexist in sysroot - Enables `xlings use python@3.12` for projects requiring Python 3.12 (e.g. OpenPI which pins numpy<2.0.0) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
xlings install python@3.12config(), automatically copyinclude/headers into subos sysroot (subos_sysrootdir()/usr/include/) so that the subos GCC can findpyconfig.hwhen compiling C extensionsxlings use python@3.12/xlings use python@3.13Motivation
When using xlings' subos GCC to
pip installpackages with C extensions (e.g.evdev,mujoco,dm-tree), compilation fails with:The subos GCC only searches
<sysroot>/usr/include/, which lacks Python dev headers. This PR copies them from the python-build-standalone install into the sysroot duringconfig().Python 3.12 is also needed for projects like OpenPI which pin
numpy<2.0.0(incompatible with Python 3.13's dm-tree wheels).Test plan
xlings install python@3.12 -y— downloads and installs successfullyxlings install python@3.13 -y— still worksxlings use python@3.12— switches active versionpython3.12/pyconfig.handpython3.13/pyconfig.hpresent in subos sysroot#include <python3.12/pyconfig.h>successfully🤖 Generated with Claude Code