From c24ef5f3e640f153b5b6c07549d142765ba2886d Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 31 Dec 2022 10:19:18 +0100 Subject: [PATCH] Python3: install packages to "site-packages" (same as waf-2.0) --- waflib/Tools/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waflib/Tools/python.py b/waflib/Tools/python.py index 48e2be50..b32c89b6 100644 --- a/waflib/Tools/python.py +++ b/waflib/Tools/python.py @@ -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