aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-18 00:20:52 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-18 00:20:52 +0300
commit9790f2d500244047dedc7dd9f87b6471e0889be5 (patch)
tree0cd6b7dc91a15abfc41efd8e271c0f5d7de8a40d /mesonbuild/modules/python.py
parent92487ea33db9d882929d755308853d2ed82abd0d (diff)
downloadmeson-9790f2d500244047dedc7dd9f87b6471e0889be5.zip
meson-9790f2d500244047dedc7dd9f87b6471e0889be5.tar.gz
meson-9790f2d500244047dedc7dd9f87b6471e0889be5.tar.bz2
Made Python module match the new init interface.
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r--mesonbuild/modules/python.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index b0d1310..16bdfd6 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -359,8 +359,8 @@ class PythonInstallation(ExternalProgramHolder, InterpreterObject):
class PythonModule(ExtensionModule):
- def __init__(self):
- super().__init__()
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
self.snippets.add('find_installation')
# https://www.python.org/dev/peps/pep-0397/
@@ -429,5 +429,5 @@ class PythonModule(ExtensionModule):
return res
-def initialize():
- return PythonModule()
+def initialize(*args, **kwargs):
+ return PythonModule(*args, **kwargs)