aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-06-01 22:53:06 +0300
committerGitHub <noreply@github.com>2018-06-01 22:53:06 +0300
commitbf2e21ec0edeaf8e86ff6fd46c2c2fcfcc4713ed (patch)
tree6601dfff032ff82eb414fc94c44bdd048142ce4b /mesonbuild/modules/python.py
parent0a035dea6d0b1416fc76e323bbd7b0ab5a60a4af (diff)
parentc5e85e59cc2b16edb094fa598fb1a096cd0db4d5 (diff)
downloadmeson-bf2e21ec0edeaf8e86ff6fd46c2c2fcfcc4713ed.zip
meson-bf2e21ec0edeaf8e86ff6fd46c2c2fcfcc4713ed.tar.gz
meson-bf2e21ec0edeaf8e86ff6fd46c2c2fcfcc4713ed.tar.bz2
Merge pull request #3486 from Salamandar/salamandar/meson_version_introspection
Add FeatureNew and FeatureDeprecated, to alert the user of bad meson_version
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r--mesonbuild/modules/python.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index a705109..b30a1e6 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -22,7 +22,8 @@ from mesonbuild.modules import ModuleReturnValue
from . import permittedSnippetKwargs
from ..interpreterbase import (
noPosargs, noKwargs, permittedKwargs,
- InterpreterObject, InvalidArguments
+ InterpreterObject, InvalidArguments,
+ FeatureNew
)
from ..interpreter import ExternalProgramHolder
from ..interpreterbase import flatten
@@ -49,6 +50,8 @@ def run_command(python, command):
class PythonDependency(ExternalDependency):
+
+ @FeatureNew('Python Module', '0.46.0')
def __init__(self, python_holder, environment, kwargs):
super().__init__('python', environment, None, kwargs)
self.name = 'python'