Skip to content

Prep for cpython w/o sysroot#295

Open
ada-x64 wants to merge 1 commit into
mainfrom
fix/291/cpython-no-sysroot
Open

Prep for cpython w/o sysroot#295
ada-x64 wants to merge 1 commit into
mainfrom
fix/291/cpython-no-sysroot

Conversation

@ada-x64

@ada-x64 ada-x64 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Defensively removes sysroot/ prefix from cpython. Closes #291.

Verified against local cpython build nanvix/cpython#764

Defensively removes sysroot/ prefix from cpython. Closes #291.
Copilot AI review requested due to automatic review settings June 22, 2026 21:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Nanvix Python build script to support CPython release artifacts that no longer include a top-level sysroot/ directory prefix (per nanvix/cpython#742), while remaining compatible with the legacy artifact layout. This aligns the ./z setup CPython install step with the upstream packaging change and closes #291.

Changes:

  • Normalize tar member paths by stripping an optional leading sysroot/ prefix during CPython artifact extraction.
  • Update extraction routing logic to key off the normalized path for both the interpreter binary (bin/python.elf) and stdlib files (lib/python3.12/...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ada-x64 ada-x64 marked this pull request as ready for review June 22, 2026 21:35
@ada-x64 ada-x64 requested a review from ppenna as a code owner June 22, 2026 21:35
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.

Support cpython package sysroot removal

2 participants