mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
Python3: install packages to "site-packages" (same as waf-2.0)
This commit is contained in:
parent
69c95b5341
commit
c24ef5f3e6
@ -515,7 +515,7 @@ def check_python_version(conf, minver=None):
|
||||
# Check environment for PYTHONDIR
|
||||
pydir = conf.environ['PYTHONDIR']
|
||||
else:
|
||||
pydir = conf.get_sysconfig_path('stdlib')
|
||||
pydir = conf.get_sysconfig_path('purelib')
|
||||
|
||||
if 'PYTHONARCHDIR' in conf.env:
|
||||
# Check if --pythonarchdir was specified
|
||||
@ -525,7 +525,7 @@ def check_python_version(conf, minver=None):
|
||||
pyarchdir = conf.environ['PYTHONARCHDIR']
|
||||
else:
|
||||
# Finally, try to guess
|
||||
pyarchdir = conf.get_sysconfig_path('platstdlib')
|
||||
pyarchdir = conf.get_sysconfig_path('platlib')
|
||||
|
||||
if not pyarchdir:
|
||||
pyarchdir = pydir
|
||||
|
Loading…
Reference in New Issue
Block a user