aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python3.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-09-12 16:08:38 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-07 19:22:43 +0300
commit047db1c64cd5b7ef070f73e1d580e36236ac9613 (patch)
treeff6f0395e3c13d2d9c81a8a166c0cf45c4ffefa6 /mesonbuild/modules/python3.py
parent18204b8ed6a19c4ac8b2405da87513b878282f45 (diff)
downloadmeson-047db1c64cd5b7ef070f73e1d580e36236ac9613.zip
meson-047db1c64cd5b7ef070f73e1d580e36236ac9613.tar.gz
meson-047db1c64cd5b7ef070f73e1d580e36236ac9613.tar.bz2
Print warning when using deprecated 'python3' module
Diffstat (limited to 'mesonbuild/modules/python3.py')
-rw-r--r--mesonbuild/modules/python3.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py
index 3cfc689..5bda5ab 100644
--- a/mesonbuild/modules/python3.py
+++ b/mesonbuild/modules/python3.py
@@ -17,11 +17,12 @@ from .. import mesonlib, dependencies
from . import ExtensionModule
from mesonbuild.modules import ModuleReturnValue
-from ..interpreterbase import noKwargs, permittedKwargs
+from ..interpreterbase import noKwargs, permittedKwargs, FeatureDeprecated
from ..build import known_shmod_kwargs
class Python3Module(ExtensionModule):
+ @FeatureDeprecated('python3 module', '0.48.0')
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.snippets.add('extension_module')