diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-31 19:05:46 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-01-10 18:36:56 -0500 |
commit | ad525dcce45487def9d3950bed159f1c158e3581 (patch) | |
tree | 465e311a2af72ba5fd991acabc3366e405e03fe5 /mesonbuild/mesonmain.py | |
parent | 0c30db20b1769f8cc9082bb9f043882e86ad738e (diff) | |
download | meson-ad525dcce45487def9d3950bed159f1c158e3581.zip meson-ad525dcce45487def9d3950bed159f1c158e3581.tar.gz meson-ad525dcce45487def9d3950bed159f1c158e3581.tar.bz2 |
bump minimum required version of python to 3.7
Comment out the pending deprecation notice. It cannot be reached
anymore, but is still useful for the next time we do a version bump.
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index ecf1f7a..4d873e5 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -139,6 +139,9 @@ class CommandLineParser: if command is None: command = options.command + # Bump the version here in order to add a pre-exit warning that we are phasing out + # support for old python. If this is already the oldest supported version, then + # this can never be true and does nothing. if command in ('setup', 'compile', 'test', 'install') and sys.version_info < (3, 7): pending_python_deprecation_notice = True @@ -204,8 +207,8 @@ def ensure_stdout_accepts_unicode(): sys.stdout.buffer = sys.stdout.raw if hasattr(sys.stdout, 'raw') else sys.stdout def run(original_args, mainfile): - if sys.version_info < (3, 6): - print('Meson works correctly only with python 3.6+.') + if sys.version_info < (3, 7): + print('Meson works correctly only with python 3.7+.') print(f'You have python {sys.version}.') print('Please update your environment') return 1 |