Skip to content

Commit

Permalink
python: install_sources() should default to pure, following the doc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and jpakkane committed May 10, 2020
1 parent c4960ce commit efb8608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/modules/python.py
Expand Up @@ -361,7 +361,7 @@ def dependency_method(self, args, kwargs):

@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.')

Expand Down

0 comments on commit efb8608

Please sign in to comment.