From e5588b705a2418bd7c46aeae4971f7ebe4bd6ead Mon Sep 17 00:00:00 2001 From: Stephen Drake Date: Thu, 11 Jun 2015 03:22:51 +0000 Subject: Don't quote executable name twice in script headers Don't quote the executable name in JythonCommandSpec.from_environment() since it is quoted if necessary in CommandSpec._render(). With the executable quoted on initialisation of JythonCommandSpec, the quotes get escaped in the resulting header, eg: #!/usr/bin/env \"/path/to/jython\" --- setuptools/command/easy_install.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 1b32b1c8..df1655bf 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1944,15 +1944,6 @@ class JythonCommandSpec(CommandSpec): __import__('java').lang.System.getProperty('os.name') != 'Linux' ) - @classmethod - def from_environment(cls): - string = '"' + cls._sys_executable() + '"' - return cls.from_string(string) - - @classmethod - def from_string(cls, string): - return cls([string]) - def as_header(self): """ Workaround Jython's sys.executable being a .sh (an invalid -- cgit v1.2.1