Skip to content

python3: keep the order of patches and configure args stable - #3378

Merged
kuzeyron merged 2 commits into
kivy:developfrom
f321x:python3_stable_patch_order
Sep 10, 2026
Merged

python3: keep the order of patches and configure args stable#3378
kuzeyron merged 2 commits into
kivy:developfrom
f321x:python3_stable_patch_order

Conversation

@f321x

@f321x f321x commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

patches and configure_args are deduplicated with list(set(...)),
whose order depends on PYTHONHASHSEED.
The configure arguments end up in the shipped _sysconfigdata
module (CONFIG_ARGS), so two otherwise identical builds can differ,
and the patches are applied in a different order on every run.
Use an order-preserving dedup instead to help with reproducible builds.

Upstreamed from https://github.com/spesmilo/python-for-android

`patches` and `configure_args` are deduplicated with `list(set(...))`,
whose order depends on PYTHONHASHSEED.
The configure arguments end up in the shipped `_sysconfigdata`
module (CONFIG_ARGS), so two otherwise identical builds can differ,
and the patches are applied in a different order on every run.
Use an order-preserving dedup instead to help with reproducible builds.

Upstreamed from https://github.com/spesmilo/python-for-android
@kuzeyron
kuzeyron merged commit e772ad9 into kivy:develop Sep 10, 2026
75 of 76 checks passed
@f321x
f321x deleted the python3_stable_patch_order branch September 10, 2026 15:30
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.

3 participants