Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
python-setuptools
fix-get-python-lib-python38.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-get-python-lib-python38.patch of Package python-setuptools
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"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor