Browse Source

python-setuptools: enforce __PYVENV_LAUNCHER__ env var use

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lilik-openwrt-22.03
Alexandru Ardelean 9 years ago
parent
commit
b9a0a65035
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      lang/python-setuptools/patches/0002-fix-pyvenv-environment-get.patch

+ 13
- 0
lang/python-setuptools/patches/0002-fix-pyvenv-environment-get.patch View File

@ -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)

Loading…
Cancel
Save