mirror of https://gitlab.com/ita1024/waf.git
Distutils removal in Python 3.12: set the correct Python arch dir
This commit is contained in:
parent
6551dd04e4
commit
46cd7934e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue