2022-11-14 10:33:55 +00:00
|
|
|
Index: setuptools-65.5.1/setuptools/_distutils/sysconfig.py
|
2022-10-19 07:45:56 +00:00
|
|
|
===================================================================
|
2022-11-14 10:33:55 +00:00
|
|
|
--- 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
|
2022-10-19 07:45:56 +00:00
|
|
|
|
|
|
|
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"
|