[dia: 76/105] #19: Always add gtkcons.py to installed python scripts.



commit f7b01c688f6515ad1da3369240f0d2a6717a88a7
Author: Eduard Nicodei <eddnicodei gmail com>
Date:   Fri Jan 11 23:51:36 2019 +0000

    #19: Always add gtkcons.py to installed python scripts.
    
      - If pygtk is not present, gtkcons will simply not run.

 plug-ins/python/meson.build | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/plug-ins/python/meson.build b/plug-ins/python/meson.build
index 38c87f04..6b970b50 100644
--- a/plug-ins/python/meson.build
+++ b/plug-ins/python/meson.build
@@ -35,6 +35,7 @@ python_scripts = [
     'diasvg_import.py',
     'dot.py',
     'doxrev.py',
+    'gtkcons.py',  # Will only run if pygtk is present.
     'imgmap.py',
     'otypes.py',
     'pydiadoc.py',
@@ -55,13 +56,6 @@ if py_dep.found()
         install_dir: dialibdir
     )
 
-    # Check for pygtk module.
-    # TODO: we should use meson python module for this.
-    python = find_program('python2')
-    if run_command(python, '-c', 'import pygtk').returncode() == 0
-        python_scripts += 'gtkcons.py'
-    endif
-
     install_data(python_scripts, install_dir: join_paths(pkgdatadir, 'python'))
     install_data('python-startup.py', install_dir: pkgdatadir)
 endif


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