@@ -82,6 +82,8 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
82
82
ID_TAG = XY_ARCH_TAG
83
83
# Tag shown in 'py list' output
84
84
DISPLAY_TAG = f"{ XY_TAG } -dev{ TAG_ARCH } " if VER_SUFFIX else XY_ARCH_TAG
85
+ # Tag used for PEP 514 registration
86
+ SYS_WINVER = XY_TAG + (TAG_ARCH if TAG_ARCH != '-64' else '' )
85
87
86
88
DISPLAY_SUFFIX = ", " .join (i for i in DISPLAY_TAGS if i )
87
89
if DISPLAY_SUFFIX :
@@ -146,25 +148,26 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
146
148
{** base , "name" : f"{ prefix } { X_ARCH_TAG } .exe" },
147
149
])
148
150
149
- STD_PEP514 .append ({
150
- "kind" : "pep514" ,
151
- "Key" : rf"{ COMPANY } \{ ID_TAG } " ,
152
- "DisplayName" : f"{ DISPLAY_NAME } { DISPLAY_VERSION } " ,
153
- "SupportUrl" : "https://www.python.org/" ,
154
- "SysArchitecture" : SYS_ARCH ,
155
- "SysVersion" : VER_DOT ,
156
- "Version" : FULL_VERSION ,
157
- "InstallPath" : {
158
- "_" : "%PREFIX%" ,
159
- "ExecutablePath" : f"%PREFIX%{ TARGET } " ,
160
- # WindowedExecutablePath is added below
161
- },
162
- "Help" : {
163
- "Online Python Documentation" : {
164
- "_" : f"https://docs.python.org/{ VER_DOT } /"
151
+ if SYS_WINVER :
152
+ STD_PEP514 .append ({
153
+ "kind" : "pep514" ,
154
+ "Key" : rf"{ COMPANY } \{ SYS_WINVER } " ,
155
+ "DisplayName" : f"{ DISPLAY_NAME } { DISPLAY_VERSION } " ,
156
+ "SupportUrl" : "https://www.python.org/" ,
157
+ "SysArchitecture" : SYS_ARCH ,
158
+ "SysVersion" : VER_DOT ,
159
+ "Version" : FULL_VERSION ,
160
+ "InstallPath" : {
161
+ "_" : "%PREFIX%" ,
162
+ "ExecutablePath" : f"%PREFIX%{ TARGET } " ,
163
+ # WindowedExecutablePath is added below
165
164
},
166
- },
167
- })
165
+ "Help" : {
166
+ "Online Python Documentation" : {
167
+ "_" : f"https://docs.python.org/{ VER_DOT } /"
168
+ },
169
+ },
170
+ })
168
171
169
172
STD_START .append ({
170
173
"kind" : "start" ,
0 commit comments