[totem/wip/hadess/build-warnings: 2/2] build: Fix obsolescence warning with Python 3 check



commit e920277942eb2b374bf1dc0236ec499a000a145f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 11 21:43:50 2019 +0100

    build: Fix obsolescence warning with Python 3 check
    
    DEPRECATION: Project targetting '>= 0.43.0' but tried to use feature deprecated since '0.48.0': python3 
module

 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1c3a67d36..391bac87e 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
   version: '3.31.90',
   license: 'GPL2+ with exception',
   default_options: 'buildtype=debugoptimized',
-  meson_version: '>= 0.43.0'
+  meson_version: '>= 0.46.0'
 )
 
 totem_version = meson.project_version()
@@ -180,7 +180,7 @@ python_deps = []
 
 python_option = get_option('enable-python')
 if python_option != 'no'
-  python = import('python3').find_python()
+  python = import('python').find_installation('python3')
   if python.found()
     python_req_version = '>= 3.0'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]