From: Karolina Surma <33810531+befeleme@users.noreply.github.com> Date: Wed, 10 Dec 2025 12:09:41 +0000 (+0100) Subject: gh-131372: Include LDVERSION and EXE in base_interpreter value (#142256) X-Git-Tag: v3.15.0a3~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0d0f4b72a4ae5b1fc5c89ebcd20a9e59d82b914;p=thirdparty%2FPython%2Fcpython.git 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 --------- Signed-off-by: Filipe Laíns Co-authored-by: Filipe Laíns --- 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 000000000000..fd53e8c28132 --- /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 ed9ab2844d25..8272635bc627 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()