From 43ffa78752de38190b2480b68d9ad908cf1b7fa5 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 18 Jan 2015 19:57:02 -0500 Subject: Allow the CommandSpec class to be resolved by the writer. --- setuptools/command/easy_install.py | 2 ++ setuptools/command/install_scripts.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index fcd96bea..9d25a139 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1988,6 +1988,8 @@ class ScriptWriter(object): ) """).lstrip() + command_spec_class = CommandSpec + @classmethod def get_script_args(cls, dist, executable=None, wininst=False): # for backward compatibility diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py index 8d251ee7..9d4ac420 100755 --- a/setuptools/command/install_scripts.py +++ b/setuptools/command/install_scripts.py @@ -39,7 +39,7 @@ class install_scripts(orig.install_scripts): writer = ei.WindowsScriptWriter # resolve the writer to the environment writer = writer.best() - cmd = ei.CommandSpec.from_param(exec_param) + cmd = writer.command_spec_cls.from_param(exec_param) for args in writer.get_args(dist, cmd.as_header()): self.write_script(*args) -- cgit v1.2.3