diff options
author | Stephen Drake <steve+bitbucket@synergyconsultingnz.com> | 2015-06-11 03:22:51 +0000 |
---|---|---|
committer | Stephen Drake <steve+bitbucket@synergyconsultingnz.com> | 2015-06-11 03:22:51 +0000 |
commit | e5588b705a2418bd7c46aeae4971f7ebe4bd6ead (patch) | |
tree | 8983175af7be576361b00232acf4e7b8a80c046e /setuptools | |
parent | 3c047624cfa74a42320334ed6ec0dd7b6bd789b6 (diff) | |
download | external_python_setuptools-e5588b705a2418bd7c46aeae4971f7ebe4bd6ead.tar.gz external_python_setuptools-e5588b705a2418bd7c46aeae4971f7ebe4bd6ead.tar.bz2 external_python_setuptools-e5588b705a2418bd7c46aeae4971f7ebe4bd6ead.zip |
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\"
Diffstat (limited to 'setuptools')
-rwxr-xr-x | setuptools/command/easy_install.py | 9 |
1 files changed, 0 insertions, 9 deletions
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 |