summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-16 17:22:22 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-16 17:22:22 -0500
commit072653066beade0dc5fde02c26e747002ab80baa (patch)
tree865d8b8ea76fe15a2ad306ac9c4afb9111be16ce /setuptools/command/easy_install.py
parentcda3ccf5c2b87212ca53b91fb782e2b858686dd3 (diff)
downloadpython-setuptools-git-072653066beade0dc5fde02c26e747002ab80baa.tar.gz
Restore setuptools.command.easy_install.sys_executable for pbr compatibility.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index b61ab034..adb18140 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -56,7 +56,6 @@ from pkg_resources import (
)
import pkg_resources
-
# Turn on PEP440Warnings
warnings.filterwarnings("default", category=pkg_resources.PEP440Warning)
@@ -1917,6 +1916,9 @@ class CommandSpec(list):
cmdline = subprocess.list2cmdline(items)
return '#!' + cmdline + '\n'
+# For pbr compat; will be removed in a future version.
+sys_executable = CommandSpec._sys_executable()
+
class JythonCommandSpec(CommandSpec):
@classmethod
@@ -2238,4 +2240,3 @@ def _patch_usage():
yield
finally:
distutils.core.gen_usage = saved
-