Skip to content

Commit 1a1d30e

Browse files
committed
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.
1 parent 1a7824a commit 1a1d30e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)