aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-04 15:56:19 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-04 15:56:19 -0500
commitd7cb597b9697e11d3f13e46d6af787ffc82571d5 (patch)
tree78a7275459f2f98110ce1a19be37de7750a6c86f
parent4108a12a41f3c413f2ea5e8ede3075d67067cba5 (diff)
downloadexternal_python_setuptools-d7cb597b9697e11d3f13e46d6af787ffc82571d5.tar.gz
external_python_setuptools-d7cb597b9697e11d3f13e46d6af787ffc82571d5.tar.bz2
external_python_setuptools-d7cb597b9697e11d3f13e46d6af787ffc82571d5.zip
No need to pass the writer - just invoke it directly.
-rwxr-xr-xsetuptools/command/easy_install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 4e05d670..d5d518de 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1906,16 +1906,16 @@ class ScriptWriter(object):
"""
writer = cls.get_writer(wininst)
header = get_script_header("", executable, wininst)
- return cls._gen_args(dist, writer, header)
+ return writer._gen_args(dist, header)
@classmethod
- def _gen_args(cls, dist, writer, header):
+ def _gen_args(cls, dist, header):
spec = str(dist.as_requirement())
for type_ in 'console', 'gui':
group = type_ + '_scripts'
for name, ep in dist.get_entry_map(group).items():
- script_text = writer.template % locals()
- for res in writer._get_script_args(type_, name, header,
+ script_text = cls.template % locals()
+ for res in cls._get_script_args(type_, name, header,
script_text):
yield res