Skip to content

Feat: Expose each target's CPython include directory as a Gradle Provider - #55

Merged
b-re-w merged 2 commits into
developfrom
work/include-provider
Oct 3, 2026
Merged

b-re-w merged 2 commits into
developfrom
work/include-provider

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 3, 2026

Copy link
Copy Markdown
Member

Closes #46

:python-multiplatform registers the extension cpythonIncludeDirectories; includeDir(target, flavour) returns the directory directly holding Python.h (one level below the issue's table: include/python3.14[t]/, Windows include/), carrying the extraction task. Targets: 4 desktop, 2 Android, 2 iOS slices; free-threaded only for the configured flavour (the other fails naming -PpythonFreeThreaded). Contract in docs/platforms/python-version-acquisition.md §7; SPEC T-3.

Coordinator verification: plugin tests 178/0 (7 new CPythonIncludeDirectoriesTest), :python-multiplatform:help configures, compileKotlinDesktop OK.

b-re-w added 2 commits October 3, 2026 09:06
…ider

The :python-multiplatform project registers cpythonIncludeDirectories:
includeDir(target, flavour) returns the directory that directly holds Python.h
in the acquisition tree, carrying the extraction task as a dependency, so a
consumer (pypackpack's compile slot, TypedPython's C build) compiles against
the CPython the app embeds, not the host's. Only the flavour selected by
-PpythonFreeThreaded is available; asking for the other fails naming it.
@b-re-w
b-re-w merged commit 3d4e277 into develop Oct 3, 2026
@b-re-w
b-re-w deleted the work/include-provider branch October 3, 2026 00:09
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