From 92e2e1e2d80d46b609dbb68b0498d73dc6e68edb Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Tue, 15 Aug 2017 16:39:38 -0400 Subject: python3: Fix 'sysconfig_path' for platform-dependant paths Include 'platbase' for stripping the prefix for 'platlib' and 'platinclude'. This is necessary for installing platform-dependant Python modules such as GI overrides. --- mesonbuild/modules/python3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules') diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index 6431047..0247ddf 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -68,7 +68,7 @@ class Python3Module(ExtensionModule): raise mesonlib.MesonException('{} is not a valid path name {}.'.format(path_name, valid_names)) # Get a relative path without a prefix, e.g. lib/python3.6/site-packages - path = sysconfig.get_path(path_name, vars={'base': ''})[1:] + path = sysconfig.get_path(path_name, vars={'base': '', 'platbase': ''})[1:] return ModuleReturnValue(path, []) -- cgit v1.1