summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-05 23:00:28 +0200
committerJason R. Coombs <jaraco@jaraco.com>2013-08-05 23:00:28 +0200
commit2581653fe6b8f0b02bb0d1a25ea78733873f0df1 (patch)
treed401d679581516d3cf3baa0f0433c68833618243 /setuptools/command
parent33bac3f4967b8ce086b2a8a060d993e7013b6015 (diff)
downloadpython-setuptools-bitbucket-2581653fe6b8f0b02bb0d1a25ea78733873f0df1.tar.gz
extract launcher type indication
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/easy_install.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index bac38d76..e667d0a3 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -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']