Skip to content

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

Open
f321x wants to merge 2 commits into
kivy:developfrom
f321x:python3_stable_patch_order
Open

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

Conversation

@f321x

@f321x f321x commented Sep 10, 2026

Copy link
Copy Markdown

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
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