aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
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
commit8711abcb4bac42e771647718e6994c6847e0383a (patch)
tree38677eaca06a4c6a2ac5a710f7f500832adc61e5 /setuptools/command/easy_install.py
parent246a5982a37f38c70012326577278582f0b01ef2 (diff)
downloadexternal_python_setuptools-8711abcb4bac42e771647718e6994c6847e0383a.tar.gz
external_python_setuptools-8711abcb4bac42e771647718e6994c6847e0383a.tar.bz2
external_python_setuptools-8711abcb4bac42e771647718e6994c6847e0383a.zip
Also use command_spec_class in ScriptWriter.
Diffstat (limited to 'setuptools/command/easy_install.py')
-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()