mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37734: Fix use of registry values to launch Python from Microsoft Store app (GH-15146)
This commit is contained in:
parent
362f5350eb
commit
1fab9cbfba
3 changed files with 16 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue