]>
Commit | Line | Data |
---|---|---|
2f5fae83 JB |
1 | --- setuptools-65.3.0/setuptools/_distutils/sysconfig.py.orig 2022-08-31 15:40:59.444208654 +0200 |
2 | +++ setuptools-65.3.0/setuptools/_distutils/sysconfig.py 2022-08-31 15:42:02.547200129 +0200 | |
3 | @@ -237,13 +237,13 @@ def get_python_lib(plat_specific=0, stan | |
80225079 JR |
4 | prefix = plat_specific and EXEC_PREFIX or PREFIX |
5 | ||
6 | if os.name == "posix": | |
7 | - if plat_specific or standard_lib: | |
8 | + if plat_specific or standard_lib or prefix != "/usr": | |
9 | # Platform-specific modules (any module from a non-pure-Python | |
10 | # module distribution) or standard Python library modules. | |
11 | libdir = getattr(sys, "platlibdir", "lib") | |
12 | else: | |
13 | # Pure Python | |
14 | - libdir = "lib" | |
15 | + libdir = "share" | |
16 | implementation = 'pypy' if IS_PYPY else 'python' | |
2f5fae83 JB |
17 | libpython = os.path.join(prefix, libdir, implementation + get_python_version()) |
18 | return _posix_lib(standard_lib, libpython, early_prefix, prefix) |