aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()