aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
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
commit46196e8239a9a8f523774f7d48bdf3b810bd083b (patch)
tree1b76950eb32fdd0fd4d8397002f1b0ecf8cea9c7 /setuptools/command/easy_install.py
parente15ad8afcac113fb1091a4a8951d8e59adbd5ba9 (diff)
downloadexternal_python_setuptools-46196e8239a9a8f523774f7d48bdf3b810bd083b.tar.gz
external_python_setuptools-46196e8239a9a8f523774f7d48bdf3b810bd083b.tar.bz2
external_python_setuptools-46196e8239a9a8f523774f7d48bdf3b810bd083b.zip
extract launcher type indication
--HG-- extra : rebase_source : 940b4a8a2c6efe60a2c532e943173ccff0515790
Diffstat (limited to 'setuptools/command/easy_install.py')
-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']