diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-16 17:22:22 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-16 17:22:22 -0500 |
| commit | 53b9cb8de6044f21b77a36d591e986cac9038909 (patch) | |
| tree | 5d895f6f7ae9d78ebda13645febf8bf8e838ce1e | |
| parent | a3f8ed0e5159a0bb15e117aa1b581d9fd871a6b4 (diff) | |
| download | python-setuptools-bitbucket-53b9cb8de6044f21b77a36d591e986cac9038909.tar.gz | |
Restore setuptools.command.easy_install.sys_executable for pbr compatibility.
| -rw-r--r-- | CHANGES.txt | 8 | ||||
| -rwxr-xr-x | setuptools/command/easy_install.py | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index ad419d25..d6775876 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,14 @@ CHANGES ======= +------ +12.0.1 +------ + +* Restore ``setuptools.command.easy_install.sys_executable`` for pbr + compatibility. For the future, tools should construct a CommandSpec + explicitly. + ---- 12.0 ---- 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 - |
