Skip to content

[mypyc] Add undocumented flag to control target - #22073

Open
jhance wants to merge 3 commits into
python:masterfrom
jhance:mypy-target
Open

jhance wants to merge 3 commits into
python:masterfrom
jhance:mypy-target

Conversation

@jhance

@jhance jhance commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

The purpose of this is to allow compiling extensions for any supported python version from a host running
a potentially different version (or perhaps type of a different build variant; mainly free threading)

After internal discussion with jukka we decided to bikeshed the exact interface for the cli to specify the target python version. For now it is --target-python (t?). It is purposely not documented anywhere.

This requires passing through the target python which is represented as a class with version and free threaded fields as well as properties representing semantics.

After discussion with jukka we decided to bikeshed the exact interface
for the cli to specify the target python version. For now it is
--target-python <python version>(t?)

This requires passing through the target python which is represented
as a class with version and free threaded fields as well as properties
representing semantics.
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.

1 participant