aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-04-09 15:15:07 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-05-28 15:17:10 -0400
commit2e02ef6592fa6634eadbe388c2a5ee957ce20e59 (patch)
tree2083b14523bc246507a5d91dee7113e9ac66d5ee /mesonbuild/modules/python.py
parenta734bcfc83a67788f71b5b84a46a4d9727b5ec09 (diff)
downloadmeson-2e02ef6592fa6634eadbe388c2a5ee957ce20e59.zip
meson-2e02ef6592fa6634eadbe388c2a5ee957ce20e59.tar.gz
meson-2e02ef6592fa6634eadbe388c2a5ee957ce20e59.tar.bz2
modules: Add methods dict everywhere
This fix calling random internal methods from meson.build as long as they were not prefixed by underscore.
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r--mesonbuild/modules/python.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 1efebf8..b7070df 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):