diff --git a/meson.spec b/meson.spec index 027bd5c..e0d9a38 100644 --- a/meson.spec +++ b/meson.spec @@ -14,6 +14,8 @@ License: ASL 2.0 URL: https://mesonbuild.com/ Source: https://github.com/mesonbuild/meson/releases/download/%{version}/meson-%{version}.tar.gz +Patch: no-python-deprecation-notice.patch + BuildArch: noarch BuildRequires: python3-devel @@ -118,6 +120,7 @@ export MESON_PRINT_TEST_OUTPUT=1 %changelog * Thu Sep 08 2022 Davide Cavalca - 0.61.3-1.1 - Drop usage of version_no_tilde macro to fix the el8 build +- Disable deprecation notice for Python 3.6 * Tue Mar 15 2022 Marc-André Lureau - 0.61.3-1 - Update to 0.61.3 diff --git a/no-python-deprecation-notice.patch b/no-python-deprecation-notice.patch new file mode 100644 index 0000000..9b0fd1d --- /dev/null +++ b/no-python-deprecation-notice.patch @@ -0,0 +1,12 @@ +diff -Naur a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py +--- a/mesonbuild/mesonmain.py 2022-03-14 17:54:43.000000000 +0000 ++++ b/mesonbuild/mesonmain.py 2022-09-08 11:37:30.188886866 +0100 +@@ -140,7 +140,7 @@ + command = options.command + + if command in ('setup', 'compile', 'test', 'install') and sys.version_info < (3, 7): +- pending_python_deprecation_notice = True ++ pending_python_deprecation_notice = False + + try: + return options.run_func(options)