ID_TAG = XY_ARCH_TAG
# Tag shown in 'py list' output
DISPLAY_TAG = f"{XY_TAG}-dev{TAG_ARCH}" if VER_SUFFIX else XY_ARCH_TAG
+ # Tag used for PEP 514 registration
+ SYS_WINVER = XY_TAG + (TAG_ARCH if TAG_ARCH != '-64' else '')
DISPLAY_SUFFIX = ", ".join(i for i in DISPLAY_TAGS if i)
if DISPLAY_SUFFIX:
{**base, "name": f"{prefix}{X_ARCH_TAG}.exe"},
])
- STD_PEP514.append({
- "kind": "pep514",
- "Key": rf"{COMPANY}\{ID_TAG}",
- "DisplayName": f"{DISPLAY_NAME} {DISPLAY_VERSION}",
- "SupportUrl": "https://www.python.org/",
- "SysArchitecture": SYS_ARCH,
- "SysVersion": VER_DOT,
- "Version": FULL_VERSION,
- "InstallPath": {
- "_": "%PREFIX%",
- "ExecutablePath": f"%PREFIX%{TARGET}",
- # WindowedExecutablePath is added below
- },
- "Help": {
- "Online Python Documentation": {
- "_": f"https://docs.python.org/{VER_DOT}/"
+ if SYS_WINVER:
+ STD_PEP514.append({
+ "kind": "pep514",
+ "Key": rf"{COMPANY}\{SYS_WINVER}",
+ "DisplayName": f"{DISPLAY_NAME} {DISPLAY_VERSION}",
+ "SupportUrl": "https://www.python.org/",
+ "SysArchitecture": SYS_ARCH,
+ "SysVersion": VER_DOT,
+ "Version": FULL_VERSION,
+ "InstallPath": {
+ "_": "%PREFIX%",
+ "ExecutablePath": f"%PREFIX%{TARGET}",
+ # WindowedExecutablePath is added below
},
- },
- })
+ "Help": {
+ "Online Python Documentation": {
+ "_": f"https://docs.python.org/{VER_DOT}/"
+ },
+ },
+ })
STD_START.append({
"kind": "start",