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

This commit is contained in:
Thomas Nagy 2022-12-31 09:53:59 +01:00
parent 84c26588fc
commit 6551dd04e4
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='stdlib' if kw.get('plat_specific') else 'platstdlib'
keyword='purelib' if kw.get('plat_specific') else 'platlib'
if 'prefix' in kw:
return get_path(keyword, vars={'installed_base': kw['prefix'], 'platbase': kw['prefix']})
return get_path(keyword)