Skip to content

Configurable build-details.json name#150098

Open
stefanor wants to merge 2 commits into
python:mainfrom
stefanor:build-detials-name
Open

Configurable build-details.json name#150098
stefanor wants to merge 2 commits into
python:mainfrom
stefanor:build-detials-name

Conversation

@stefanor
Copy link
Copy Markdown
Contributor

Linux distributions that co-install multiple Python versions in the same path (e.g. multiarch on Debian, debug builds, and free-threading) need a way to place multiple build-details.jsons side-by-side.

PEP-739 is being updated to recommend renaming in this situation. To ensure some standardisation, this PR generates appropriate names for distributions that need to use this feature. The name will be exposed in sysconfig.

My first preference would be to always do this, using the ABIFLAGS directly in the name. But this leads to less-human-readable names and the PEP authors preferred a static name where possible and a more verbose name, when we choose to rename.

@FFY00

@FFY00
Copy link
Copy Markdown
Member

FFY00 commented May 19, 2026

I would prefer to rename the configure option to something like --with-build-details-identifier, working similarly to --with-build-python. If the option wasn't passed, no identifier is added, if it is passed without value, it would default to $MULTIARCH$threading_suffix$debug_suffix, and if it is passed with a value, the specified value would be used.

What do you think?

@stefanor
Copy link
Copy Markdown
Contributor Author

That works for me!

@stefanor stefanor force-pushed the build-detials-name branch from b6759d2 to 1345552 Compare May 19, 2026 19:19
Linux distributions that co-install multiple Python versions in the same
path (e.g. multiarch on Debian, debug builds, and free-threading) need a
way to place multiple build-details.jsons side-by-side.

PEP-739 is being updated [0] to recommend renaming in this situation. To
ensure some standardization, this PR generates appropriate names for
distributions that need to use this feature.

[0]: python/peps#4889
@stefanor stefanor force-pushed the build-detials-name branch from 1345552 to adb7586 Compare May 19, 2026 19:21
@stefanor
Copy link
Copy Markdown
Contributor Author

@FFY00: Implemented that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants