Distutils removal in Python 3.12: set the correct Python arch dir

This commit is contained in:
Thomas Nagy 2022-12-31 10:32:05 +01:00
parent 6551dd04e4
commit 46cd7934e6
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ try:
except ImportError:
from sysconfig import get_config_var, get_path
def get_python_lib(*k, **kw):
keyword='purelib' if kw.get('plat_specific') else 'platlib'
keyword='platlib' if kw.get('plat_specific') else 'purelib'
if 'prefix' in kw:
return get_path(keyword, vars={'installed_base': kw['prefix'], 'platbase': kw['prefix']})
return get_path(keyword)