Skip to content

Fixed Python version support.#3283

Merged
AndreMiras merged 12 commits intokivy:developfrom
GvozdevLeonid:develop
Mar 5, 2026
Merged

Fixed Python version support.#3283
AndreMiras merged 12 commits intokivy:developfrom
GvozdevLeonid:develop

Conversation

@GvozdevLeonid
Copy link
Contributor

Fixed a bug when selecting libpythonХХХ.so version is decreasing (3.14 -> 3.5), but the check for the absence of the Python library ends at version 3.14, I changed it to 3.5. I also slightly changed the Python recipe to return support for version selection via buildozer

Copy link
Member

@T-Dynamos T-Dynamos left a comment

Choose a reason for hiding this comment

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

LGTM! I was trying to do something same in #3280.

@GvozdevLeonid
Copy link
Contributor Author

I haven't figured out yet if it's possible to somehow remove the dependency on sqlite (previously, you could blacklist sqlite in buildozer and p4a, but now my build crashes because of it)

Sorry for such a large number of commits. I edited through GitHub Web and made a ton of mistakes...

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

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

Thanks for the bug fix and the follow ups.
I left two comments for the records, but nothing that absolutely needs to be addressed in this pull request.

Comment on lines +205 to +206
if _p_version.minor == 7:
self.patches.append("patches/py3.7.1_fix_cortex_a8.patch")
Copy link
Member

Choose a reason for hiding this comment

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

Nit: probably not needed anymore since we dropped that version

elif _p_version.minor >= 8:
self.patches.append("patches/py3.8.1_fix_cortex_a8.patch")

self.patches = list(set(self.patches))
Copy link
Member

Choose a reason for hiding this comment

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

Patching order is no longer preserved with the set, just something to have in mind in case patch depend on one another (which I'm not sure would be a good idea anyway)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems that this will not be relevant after closing #3272

I suggested that all lists responsible for the assembly be divided into internal (for a specific assembly and reset before each build) and external for writing the recipe itself
#3285

@AndreMiras AndreMiras merged commit a9b902b into kivy:develop Mar 5, 2026
83 of 84 checks passed
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.

4 participants