commit b9a0a650352684d8111758c5381c2853585b2015 parent 1ad3d0aab11abb214342bbec4679ea365f8b0735 Author: Alexandru Ardelean <ardeleanalex@gmail.com> Date: Mon, 31 Aug 2015 14:11:34 +0300 python-setuptools: enforce __PYVENV_LAUNCHER__ env var use Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> Diffstat:
| A | lang/python-setuptools/patches/0002-fix-pyvenv-environment-get.patch | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/lang/python-setuptools/patches/0002-fix-pyvenv-environment-get.patch b/lang/python-setuptools/patches/0002-fix-pyvenv-environment-get.patch @@ -0,0 +1,13 @@ +diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py +index df1655b..24c34e5 100755 +--- a/setuptools/command/easy_install.py ++++ b/setuptools/command/easy_install.py +@@ -1885,7 +1885,7 @@ class CommandSpec(list): + return param + if isinstance(param, list): + return cls(param) +- if param is None: ++ if param is None or os.environ.get('__PYVENV_LAUNCHER__'): + return cls.from_environment() + # otherwise, assume it's a string. + return cls.from_string(param)