Commit 46196e82 authored by Jason R. Coombs's avatar Jason R. Coombs

extract launcher type indication

--HG--
extra : rebase_source : 940b4a8a2c6efe60a2c532e943173ccff0515790
parent e15ad8af
......@@ -1798,12 +1798,13 @@ def get_script_args(dist, executable=sys_executable, wininst=False):
"""Yield write_script() argument tuples for a distribution's entrypoints"""
spec = str(dist.as_requirement())
header = get_script_header("", executable, wininst)
for group in 'console_scripts', 'gui_scripts':
for type_ in 'console', 'gui':
group = type_ + '_scripts'
for name, ep in dist.get_entry_map(group).items():
script_text = ScriptWriter.template % locals()
if sys.platform=='win32' or wininst:
# On Windows/wininst, add a .py extension and an .exe launcher
if group=='gui_scripts':
if type_=='gui':
launcher_type = 'gui'
ext = '-script.pyw'
old = ['.pyw']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment