From efb86088bcf8960db440eadcd11c0e073c80ab52 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Thu, 26 Mar 2020 19:22:41 +0100 Subject: python: install_sources() should default to pure, following the doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As stated by the doc, default to install python sources to purelib location, as they should not depend on platform. This also fixes discrepancy between get_install_dir() and install_sources() locations. Signed-off-by: Marc-André Lureau --- mesonbuild/modules/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/python.py') diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 79e1824c0..ceabd766b 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -361,7 +361,7 @@ class PythonInstallation(ExternalProgramHolder): @permittedKwargs(['pure', 'subdir']) def install_sources_method(self, args, kwargs): - pure = kwargs.pop('pure', False) + pure = kwargs.pop('pure', True) if not isinstance(pure, bool): raise InvalidArguments('"pure" argument must be a boolean.') -- cgit v1.2.3