Skip to content

Commit 19b8203

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 19b8203

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Tools/build/generate-build-details.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ def generate_data(schema_version: str) -> collections.defaultdict[str, Any]:
4747
data['base_prefix'] = sysconfig.get_config_var('installed_base')
4848
#data['base_interpreter'] = sys._base_executable
4949
data['base_interpreter'] = os.path.join(
50-
sysconfig.get_path('scripts'),
51-
'python' + sysconfig.get_config_var('VERSION'),
50+
sysconfig.get_path("scripts"),
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)