set default install_tag of python.install_sources() to "python-runtime"

the default parameter for python.install_sources is set to "runtime" but
should be "python-runtime" according to the existing documentation
- https://mesonbuild.com/Python-module.html#install_sources
- https://mesonbuild.com/Installing.html#installation-tags
pull/11360/head
Peter Urban 2 years ago committed by Eli Schwartz
parent 0a6e485d92
commit eec3f2c35b
  1. 2
      mesonbuild/modules/python.py

@ -611,7 +611,7 @@ class PythonInstallation(ExternalProgramHolder):
) )
def install_sources_method(self, args: T.Tuple[T.List[T.Union[str, mesonlib.File]]], def install_sources_method(self, args: T.Tuple[T.List[T.Union[str, mesonlib.File]]],
kwargs: 'PyInstallKw') -> 'Data': kwargs: 'PyInstallKw') -> 'Data':
tag = kwargs['install_tag'] or 'runtime' tag = kwargs['install_tag'] or 'python-runtime'
pure = kwargs['pure'] if kwargs['pure'] is not None else self.pure pure = kwargs['pure'] if kwargs['pure'] is not None else self.pure
install_dir = self._get_install_dir_impl(pure, kwargs['subdir']) install_dir = self._get_install_dir_impl(pure, kwargs['subdir'])
return self.interpreter.install_data_impl( return self.interpreter.install_data_impl(

Loading…
Cancel
Save