Skip to content

Commit c0d0f4b

Browse files
befelemeFFY00
andauthored
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]>
1 parent 49b1fb4 commit c0d0f4b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add ``LDVERSION`` and ``EXE`` to the ``base_interpreter`` value of
2+
``build-details.json``.

Tools/build/generate-build-details.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def generate_data(schema_version: str) -> collections.defaultdict[str, Any]:
4848
#data['base_interpreter'] = sys._base_executable
4949
data['base_interpreter'] = os.path.join(
5050
sysconfig.get_path('scripts'),
51-
'python' + sysconfig.get_config_var('VERSION'),
51+
"python"
52+
+ sysconfig.get_config_var('LDVERSION')
53+
+ sysconfig.get_config_var('EXE'),
5254
)
5355
data['platform'] = sysconfig.get_platform()
5456

0 commit comments

Comments
 (0)