Daniel Garcia
b69b4710c5
- Update to 65.5.1: * #3638: Drop a test dependency on the mock package, always use :external+python:py:mod:`unittest.mock` -- by :user:`hroncok` * #3659: Fixed REDoS vector in package_index. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=231
22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
Index: setuptools-65.5.1/setuptools/_distutils/sysconfig.py
|
|
===================================================================
|
|
--- setuptools-65.5.1.orig/setuptools/_distutils/sysconfig.py
|
|
+++ setuptools-65.5.1/setuptools/_distutils/sysconfig.py
|
|
@@ -238,9 +238,13 @@ def get_python_lib(plat_specific=0, stan
|
|
|
|
if os.name == "posix":
|
|
if plat_specific or standard_lib:
|
|
- # Platform-specific modules (any module from a non-pure-Python
|
|
- # module distribution) or standard Python library modules.
|
|
- libdir = getattr(sys, "platlibdir", "lib")
|
|
+ # Python 3.8 doesn't have sys.platlibdir
|
|
+ if sys.version_info < (3, 9):
|
|
+ libdir = get_config_var("platsubdir") or "lib"
|
|
+ else:
|
|
+ # Platform-specific modules (any module from a non-pure-Python
|
|
+ # module distribution) or standard Python library modules.
|
|
+ libdir = getattr(sys, "platlibdir", "lib")
|
|
else:
|
|
# Pure Python
|
|
libdir = "lib"
|