0002-fix-pyvenv-environment-get.patch 546 B

12345678910111213
  1. diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
  2. index e8b90c7..8598c44 100755
  3. --- a/setuptools/command/easy_install.py
  4. +++ b/setuptools/command/easy_install.py
  5. @@ -1946,6 +1946,8 @@ class CommandSpec(list):
  6. Construct a CommandSpec from a parameter to build_scripts, which may
  7. be None.
  8. """
  9. + if os.environ.get('__PYVENV_LAUNCHER__'):
  10. + return cls.from_environment()
  11. if isinstance(param, cls):
  12. return param
  13. if isinstance(param, list):