diff options
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 137193f1..541666ce 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1873,6 +1873,7 @@ class CommandSpec(list): """ options = [] + split_args = dict() @classmethod def _sys_executable(cls): @@ -1904,7 +1905,7 @@ class CommandSpec(list): Construct a command spec from a simple string representing a command line parseable by shlex.split. """ - items = shlex.split(string) + items = shlex.split(string, **cls.split_args) return JythonCommandSpec.from_string(string) or cls(items) def install_options(self, script_text): @@ -1935,6 +1936,10 @@ class CommandSpec(list): sys_executable = CommandSpec._sys_executable() +class WindowsCommandSpec(CommandSpec): + split_args = dict(posix=False) + + class JythonCommandSpec(CommandSpec): @classmethod def from_string(cls, string): @@ -2051,6 +2056,8 @@ class ScriptWriter(object): class WindowsScriptWriter(ScriptWriter): + command_spec_class = WindowsCommandSpec + @classmethod def get_writer(cls): # for backward compatibility |