aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-20 09:56:16 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-20 09:56:16 -0500
commitc279903336c73f74c9c8df7aac1e43fb6046c34e (patch)
treed13e1114e1d11789368fefd28afd54178213b88d /setuptools/command/easy_install.py
parentdc1b07f1dfc92e097be704ad19824194a95317d2 (diff)
downloadexternal_python_setuptools-c279903336c73f74c9c8df7aac1e43fb6046c34e.tar.gz
external_python_setuptools-c279903336c73f74c9c8df7aac1e43fb6046c34e.tar.bz2
external_python_setuptools-c279903336c73f74c9c8df7aac1e43fb6046c34e.zip
Bypass string handling when default behavior of sys.executable is used.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 541666ce..dda183c8 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1897,7 +1897,9 @@ class CommandSpec(list):
@classmethod
def from_environment(cls):
- return cls.from_string('"' + cls._sys_executable() + '"')
+ string = '"' + cls._sys_executable() + '"'
+ jython_spec = JythonCommandSpec.from_string(string)
+ return jython_spec or cls([cls._sys_executable()])
@classmethod
def from_string(cls, string):