summaryrefslogtreecommitdiff
path: root/PC/layout/main.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-08-07 10:49:40 -0700
committerGitHub <noreply@github.com>2019-08-07 10:49:40 -0700
commit1fab9cbfbaf19a7bc79cef382136fcf9491e3183 (patch)
treee2bc818c366fbc21df363455a1e6b51c0676d5ae /PC/layout/main.py
parent362f5350eb5e2c7bfb0b0a8c306a2e128c3aee93 (diff)
downloadcpython-git-1fab9cbfbaf19a7bc79cef382136fcf9491e3183.tar.gz
bpo-37734: Fix use of registry values to launch Python from Microsoft Store app (GH-15146)
Diffstat (limited to 'PC/layout/main.py')
-rw-r--r--PC/layout/main.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/PC/layout/main.py b/PC/layout/main.py
index fe934bfb1a..07b7e6d574 100644
--- a/PC/layout/main.py
+++ b/PC/layout/main.py
@@ -153,9 +153,15 @@ def get_layout(ns):
yield "libs/" + n + ".lib", lib
if ns.include_appxmanifest:
+ yield from in_build("python_uwp.exe", new_name="python{}".format(VER_DOT))
+ yield from in_build("pythonw_uwp.exe", new_name="pythonw{}".format(VER_DOT))
+ # For backwards compatibility, but we don't reference these ourselves.
yield from in_build("python_uwp.exe", new_name="python")
yield from in_build("pythonw_uwp.exe", new_name="pythonw")
else:
+ yield from in_build("python.exe", new_name="python{}".format(VER_DOT))
+ yield from in_build("pythonw.exe", new_name="pythonw{}".format(VER_DOT))
+ # For backwards compatibility, but we don't reference these ourselves.
yield from in_build("python.exe", new_name="python")
yield from in_build("pythonw.exe", new_name="pythonw")
@@ -163,9 +169,9 @@ def get_layout(ns):
if ns.include_launchers and ns.include_appxmanifest:
if ns.include_pip:
- yield from in_build("python_uwp.exe", new_name="pip")
+ yield from in_build("python_uwp.exe", new_name="pip{}".format(VER_DOT))
if ns.include_idle:
- yield from in_build("pythonw_uwp.exe", new_name="idle")
+ yield from in_build("pythonw_uwp.exe", new_name="idle{}".format(VER_DOT))
if ns.include_stable:
yield from in_build(PYTHON_STABLE_DLL_NAME)