[gitg/wip/superheron/meson-python] libgitg-ext/meson.build: Use python module instead of deprecated python3 module



commit 246e46ba2cb11b059a89ddd5906bcbd217d7666b
Author: Pierre Lejeune <superheron gmail com>
Date:   Sat Feb 9 16:57:26 2019 +0100

    libgitg-ext/meson.build: Use python module instead of deprecated python3 module

 libgitg-ext/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgitg-ext/meson.build b/libgitg-ext/meson.build
index f116ba01..cb2bebe2 100644
--- a/libgitg-ext/meson.build
+++ b/libgitg-ext/meson.build
@@ -125,10 +125,11 @@ custom_target(
 
 enable_python = get_option('python')
 if enable_python
-  python = import('python3')
+  pymod = import('python')
+  py_installation = pymod.find_installation('python3')
 
   install_data(
     'GitgExt.py',
-    install_dir: join_paths(python.sysconfig_path('purelib'), 'gi', 'overrides'),
+    install_dir: join_paths(py_installation.get_path('purelib'), 'gi', 'overrides'),
   )
 endif


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