https://github.com/python/cpython/commit/c0d0f4b72a4ae5b1fc5c89ebcd20a9e59d82b914 commit: c0d0f4b72a4ae5b1fc5c89ebcd20a9e59d82b914 branch: main author: Karolina Surma <[email protected]> committer: FFY00 <[email protected]> date: 2025-12-10T12:09:41Z summary:
gh-131372: Include LDVERSION and EXE in base_interpreter value (#142256) * Include LDVERSION and EXE in base_interpreter value In Fedora, build-details.json created and installed for python3.14t contains "/usr/bin/python3.14" as the base_interpreter value. Create a correct string, taking into account both LDVERSION and EXE config variables, similarly to how it's defined in altbininstall in Makefile. * Add news Signed-off-by: Filipe Laíns <[email protected]> --------- Signed-off-by: Filipe Laíns <[email protected]> Co-authored-by: Filipe Laíns <[email protected]> files: A Misc/NEWS.d/next/Build/2025-12-09-14-23-51.gh-issue-131372.2TAEyz.rst M Tools/build/generate-build-details.py diff --git a/Misc/NEWS.d/next/Build/2025-12-09-14-23-51.gh-issue-131372.2TAEyz.rst b/Misc/NEWS.d/next/Build/2025-12-09-14-23-51.gh-issue-131372.2TAEyz.rst new file mode 100644 index 00000000000000..fd53e8c28132f0 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-12-09-14-23-51.gh-issue-131372.2TAEyz.rst @@ -0,0 +1,2 @@ +Add ``LDVERSION`` and ``EXE`` to the ``base_interpreter`` value of +``build-details.json``. diff --git a/Tools/build/generate-build-details.py b/Tools/build/generate-build-details.py index ed9ab2844d250a..8272635bc627d6 100644 --- a/Tools/build/generate-build-details.py +++ b/Tools/build/generate-build-details.py @@ -48,7 +48,9 @@ def generate_data(schema_version: str) -> collections.defaultdict[str, Any]: #data['base_interpreter'] = sys._base_executable data['base_interpreter'] = os.path.join( sysconfig.get_path('scripts'), - 'python' + sysconfig.get_config_var('VERSION'), + "python" + + sysconfig.get_config_var('LDVERSION') + + sysconfig.get_config_var('EXE'), ) data['platform'] = sysconfig.get_platform() _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
