summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-18 20:18:38 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-18 20:18:38 -0500
commit9bab508604ae1aa4ca64aa177a3f0068415792fd (patch)
tree768416ed138838ae4b001a85460a04a4bc07d111
parentd2f013423511413f74d2970cdf0172532d7ff6b9 (diff)
downloadpython-setuptools-bitbucket-9bab508604ae1aa4ca64aa177a3f0068415792fd.tar.gz
Also use command_spec_class in ScriptWriter.
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 9d25a139..137193f1 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -2004,7 +2004,7 @@ class ScriptWriter(object):
warnings.warn("Use get_header", DeprecationWarning)
if wininst:
executable = "python.exe"
- cmd = CommandSpec.from_param(executable)
+ cmd = cls.command_spec_class.from_param(executable)
cmd.install_options(script_text)
return cmd.as_header()
@@ -2045,7 +2045,7 @@ class ScriptWriter(object):
@classmethod
def get_header(cls, script_text="", executable=None):
"""Create a #! line, getting options (if any) from script_text"""
- cmd = CommandSpec.from_param(executable)
+ cmd = cls.command_spec_class.from_param(executable)
cmd.install_options(script_text)
return cmd.as_header()