aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-03-26 19:22:41 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2020-05-10 20:08:41 +0300
commitefb86088bcf8960db440eadcd11c0e073c80ab52 (patch)
treec6d63214d51092aedb1f3b2c9b31b5d2b7739451
parentc4960cefb00d62fe1ebd89e42a9b82ecfbc2443a (diff)
downloadmeson-efb86088bcf8960db440eadcd11c0e073c80ab52.zip
meson-efb86088bcf8960db440eadcd11c0e073c80ab52.tar.gz
meson-efb86088bcf8960db440eadcd11c0e073c80ab52.tar.bz2
python: install_sources() should default to pure, following the doc
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 <marcandre.lureau@redhat.com>
-rw-r--r--mesonbuild/modules/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 79e1824..ceabd76 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.')