2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 11:19:52 +01:00

Python3: install packages to "site-packages" (same as waf-2.0)

This commit is contained in:
Thomas Nagy 2022-12-31 10:19:18 +01:00
parent 69c95b5341
commit c24ef5f3e6

View File

@ -515,7 +515,7 @@ def check_python_version(conf, minver=None):
# Check environment for PYTHONDIR # Check environment for PYTHONDIR
pydir = conf.environ['PYTHONDIR'] pydir = conf.environ['PYTHONDIR']
else: else:
pydir = conf.get_sysconfig_path('stdlib') pydir = conf.get_sysconfig_path('purelib')
if 'PYTHONARCHDIR' in conf.env: if 'PYTHONARCHDIR' in conf.env:
# Check if --pythonarchdir was specified # Check if --pythonarchdir was specified
@ -525,7 +525,7 @@ def check_python_version(conf, minver=None):
pyarchdir = conf.environ['PYTHONARCHDIR'] pyarchdir = conf.environ['PYTHONARCHDIR']
else: else:
# Finally, try to guess # Finally, try to guess
pyarchdir = conf.get_sysconfig_path('platstdlib') pyarchdir = conf.get_sysconfig_path('platlib')
if not pyarchdir: if not pyarchdir:
pyarchdir = pydir pyarchdir = pydir