Skip to content

docs(proposals): add proposal for multiple target Python interpreters - #1482

Open
tiran wants to merge 1 commit into
python-wheel-build:mainfrom
tiran:docs/multi-target-python
Open

tiran wants to merge 1 commit into
python-wheel-build:mainfrom
tiran:docs/multi-target-python

Conversation

@tiran

@tiran tiran commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Description

What

Describe the problem and intended outcome for building wheels for a primary target and additional Python interpreters. The proposal covers the 3.14 GIL and free-threaded ABIs, multi-ABI wheels in 3.15, older targets, and the open questions.

Why

Fixes: #1481

@tiran
tiran requested a review from a team as a code owner November 20, 2026 11:39
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9158c17 and d63aff4.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The proposal describes building wheels for a primary Python target and additional targets in one run. It covers per-target dependency resolution, wheel compatibility, required and optional target failures, and reporting. It also states the proposal’s scope, non-goals, and unresolved design questions.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: Minimal · previous review 9158c

This PR adds a design proposal document only and does not change runtime behavior. The reuse-by-tags concern is already covered by the proposal's per-target version selection, so no merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: adding a proposal document for building wheels across multiple Python target interpreters. It matches the added docs/proposals/multi-target-python.md file and the link…
Description check Passed The description states the proposal covers the 3.14 GIL and free-threaded ABIs, multi-ABI wheels in 3.15, older targets, and open questions. This matches the added proposal document. It also links the…
Linked Issues check Passed Issue #1481 asks for a design proposal document. Its only deliverable is docs/proposals/multi-target-python.md, so no coding requirements apply. The file at the reviewed head covers the requested cont…
Out of Scope Changes check Passed The whole-PR diff against the merge base adds one file, docs/proposals/multi-target-python.md, with about 110 added lines. This is the proposal document that #1481 requests. The document links the epi…
Full details: Title check

Explanation

The title names the main change: adding a proposal document for building wheels across multiple Python target interpreters. It matches the added docs/proposals/multi-target-python.md file and the linked issue #1481. It is specific and follows the docs(scope) convention.

Full details: Description check

Explanation

The description states the proposal covers the 3.14 GIL and free-threaded ABIs, multi-ABI wheels in 3.15, older targets, and open questions. This matches the added proposal document. It also links the issue it fixes and includes a contributing-guidelines checkbox, so it is related to the changeset.

Full details: Linked Issues check

Explanation

Issue #1481 asks for a design proposal document. Its only deliverable is docs/proposals/multi-target-python.md, so no coding requirements apply. The file at the reviewed head covers the requested content: the problem and intended outcome; the 3.14 GIL and free-threaded ABIs (cp314 and cp314t); older targets such as 3.10 and 3.11; target-dependent markers and dependencies; per-target resolution (the 'one resolution per target' question is settled); the required and optional failure policy for additional targets; multi-ABI wheels in 3.15 (cp315-abi3.abi3t); scope; and non-goals. The naming and build tag scheme, target declaration, and primary-target questions are listed under Open questions. They are not marked as resolved or explicitly deferred. The issue completion criteria (maintainer acceptance, every question resolved or deferred, follow-up tickets linked) are process items. They are not verifiable from the repository and are not coding requirements.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff against the merge base adds one file, docs/proposals/multi-target-python.md, with about 110 added lines. This is the proposal document that #1481 requests. The document links the epic #1480. It contains no code, configuration, or unrelated changes. No out-of-scope changes were found.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2da6f14 and 9158c17.

Files selected for processing: 1

  • docs/proposals/multi-target-python.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@mergify

mergify Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

Describe the problem and intended outcome for building wheels for a
primary target and additional Python interpreters. The proposal covers
the 3.14 GIL and free-threaded ABIs, multi-ABI wheels in 3.15, older
targets, and the open questions.

Co-Authored-By: Claude <claude@anthropic.com>
Fixes: python-wheel-build#1481
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran
tiran force-pushed the docs/multi-target-python branch from 9158c17 to d63aff4 Compare November 20, 2026 13:53

## Intended outcome

Fromager accepts one primary target and zero or more additional targets. If

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.

Open Question: does each target get its own WorkContext, or does one context carry a list of targets? This affects every plugin hook that takes ctx.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't know, yet.

variant does not overwrite another, and you do not move files between
directories by hand.

Resolution runs once per target. Environment markers, prebuilt wheel reuse,

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.

I am assuming we will need graph and constraints one for each target, am I right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I also don't know. We may be able to extend the graph with dependency markers or create separate graphs for each Python version.

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.

sounds good

@rd4398

rd4398 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

I like the overall idea and proposal.

Here are some of my thoughts on open questions which are listed in the document:

  1. Declaring targets: I’d have users point at an interpreter path, not type a tag like cp314t. Fromager can ask that interpreter for its version, tags and markers once at startup. A typed tag doesn’t tell us enough, like the patch version or whether it’s a debug build. Global settings plus a CLI flag seems right.
  2. Which target is primary: The first one listed. Also, people will often want their newest Python as the primary and keep 3.10 around as optional.

This branch has not been deployed

No deployments
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.

[multi-python] Write high-level design proposal

2 participants