]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132930: Include IDLE path in registry for PyManager packages (GH-133246)
authorSteve Dower <steve.dower@python.org>
Thu, 1 May 2025 13:41:17 +0000 (14:41 +0100)
committerGitHub <noreply@github.com>
Thu, 1 May 2025 13:41:17 +0000 (14:41 +0100)
PC/layout/support/pymanager.py

index 3e70284a2be1e404b1fc76e5e97eb590e9c1e03d..667c89cdd2cc7a640750f8800af166ed8ca605b2 100644 (file)
@@ -188,7 +188,7 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
         ],
     })
 
-    if TARGETW:
+    if TARGETW and STD_PEP514:
         STD_PEP514[0]["InstallPath"]["WindowedExecutablePath"] = f"%PREFIX%{TARGETW}"
 
     if ns.include_idle:
@@ -206,6 +206,8 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
             "Icon": r"%PREFIX%Lib\idlelib\Icons\idle.ico",
             "IconIndex": 0,
         })
+        if STD_PEP514:
+            STD_PEP514[0]["InstallPath"]["IdlePath"] = f"%PREFIX%Lib\\idlelib\\idle.pyw"
 
     if ns.include_html_doc:
         STD_PEP514[0]["Help"]["Main Python Documentation"] = {