Repository navigation
Feat: Publish the embedded CPython version for build tools - #63
Merged
Merged
Conversation
(a) the :python-multiplatform project exposes the extension pythonMultiplatform (EmbeddedPythonVersion: pythonVersion, freeThreaded, majorMinor); (b) published artifacts carry it as module-metadata attributes org.thisisthepy.python.version and .free-threaded, and as META-INF/python-multiplatform/python.properties in the desktop jar and the Android AAR (through AGP's java resources, since KMP androidMain resources do not reach the AAR). toolchain checks compileSdk against it instead of fetching a second interpreter.
Gradle adds a configuration before running create()'s block, so the filter sees the defaults; the test now checks configurations not named *Elements instead of a resolvable *Elements one, which KMP and AGP never create.
This was referenced Oct 3, 2026
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.
Closes #61
(a) extension pythonMultiplatform (EmbeddedPythonVersion: pythonVersion, freeThreaded, majorMinor); (b) module-metadata attributes org.thisisthepy.python.version / .free-threaded and META-INF/python-multiplatform/python.properties in the desktop jar and the Android AAR (via AGP java resources).
Coordinator verification: plugin tests 191/0, desktopTest 551/0; publishToMavenLocal (desktop + androidRelease): jar and AAR contain the resource, both .module files carry the attribute.