diff options
author | Guillaume Poirier-Morency <guillaumepoiriermorency@gmail.com> | 2017-08-15 16:39:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 16:39:38 -0400 |
commit | 92e2e1e2d80d46b609dbb68b0498d73dc6e68edb (patch) | |
tree | 0d8e1995d3622396cedb9988dad85ef67ccfbb0c /mesonbuild/modules/python3.py | |
parent | 6bf65d876331a273a5393281de87747235420345 (diff) | |
download | meson-92e2e1e2d80d46b609dbb68b0498d73dc6e68edb.zip meson-92e2e1e2d80d46b609dbb68b0498d73dc6e68edb.tar.gz meson-92e2e1e2d80d46b609dbb68b0498d73dc6e68edb.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/modules/python3.py')
-rw-r--r-- | mesonbuild/modules/python3.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, []) |