Browse Source

Merge pull request #3592 from commodo/python-setuptools-fix

python-setuptools,python3-setuptools: fix path creation in setup scripts
lilik-openwrt-22.03
Hannu Nyman 8 years ago
committed by GitHub
parent
commit
11078f3895
2 changed files with 16 additions and 16 deletions
  1. +8
    -8
      lang/python-setuptools/patches/0002-fix-pyvenv-environment-get.patch
  2. +8
    -8
      lang/python3-setuptools/patches/0002-fix-pyvenv-environment-get.patch

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

@ -1,13 +1,13 @@
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index df1655b..24c34e5 100755
index e8b90c7..8598c44 100755
--- a/setuptools/command/easy_install.py --- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py
@@ -1885,7 +1885,7 @@ class CommandSpec(list):
@@ -1946,6 +1946,8 @@ class CommandSpec(list):
Construct a CommandSpec from a parameter to build_scripts, which may
be None.
"""
+ if os.environ.get('__PYVENV_LAUNCHER__'):
+ return cls.from_environment()
if isinstance(param, cls):
return param return param
if isinstance(param, list): 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)

+ 8
- 8
lang/python3-setuptools/patches/0002-fix-pyvenv-environment-get.patch View File

@ -1,13 +1,13 @@
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index df1655b..24c34e5 100755
index e8b90c7..8598c44 100755
--- a/setuptools/command/easy_install.py --- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py
@@ -1885,7 +1885,7 @@ class CommandSpec(list):
@@ -1946,6 +1946,8 @@ class CommandSpec(list):
Construct a CommandSpec from a parameter to build_scripts, which may
be None.
"""
+ if os.environ.get('__PYVENV_LAUNCHER__'):
+ return cls.from_environment()
if isinstance(param, cls):
return param return param
if isinstance(param, list): 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