From 2e02ef6592fa6634eadbe388c2a5ee957ce20e59 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 9 Apr 2021 15:15:07 -0400 Subject: modules: Add methods dict everywhere This fix calling random internal methods from meson.build as long as they were not prefixed by underscore. --- mesonbuild/modules/python.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/modules/python.py') diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 1efebf880..b7070dfa2 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -473,6 +473,9 @@ class PythonModule(ExtensionModule): @FeatureNew('Python Module', '0.46.0') def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) + self.methods.update({ + 'find_installation': self.find_installation, + }) # https://www.python.org/dev/peps/pep-0397/ def _get_win_pythonpath(self, name_or_path): -- cgit v1.2.3