summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Drake <steve+bitbucket@synergyconsultingnz.com>2015-06-11 03:22:51 +0000
committerStephen Drake <steve+bitbucket@synergyconsultingnz.com>2015-06-11 03:22:51 +0000
commit152203bf86929ab3cdf9e9a95f5abba6c89a2f52 (patch)
tree6a5edaadefc38254dbfb839ce3f7a8d0e901d1c4
parent44bb21af8203a9cf1d2b23c25798b5922494d9e7 (diff)
downloadpython-setuptools-bitbucket-152203bf86929ab3cdf9e9a95f5abba6c89a2f52.tar.gz
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\"
-rwxr-xr-xsetuptools/command/easy_install.py9
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