[meld: 6/10] build: Improve the use of the byte-compile option




commit 456e5cdd3a632362a326d87c1ec0b840bb0e2958
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Sun Feb 14 21:11:01 2021 +0100

    build: Improve the use of the byte-compile option
    
    The `byte-compile` option is used to pass `python3` installation
    directory. The condition statement has been changed to use a ternary
    operator.

 meson.build | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/meson.build b/meson.build
index f6c697a0..8efcaa6a 100644
--- a/meson.build
+++ b/meson.build
@@ -56,8 +56,4 @@ subdir('po')
 
 install_data('bin/meld', install_dir: bindir)
 
-if get_option('byte-compile')
-    meson.add_install_script('meson_post_install.py', python3.get_install_dir())
-else
-    meson.add_install_script('meson_post_install.py')
-endif
+meson.add_install_script('meson_post_install.py', get_option('byte-compile') ? python3.get_install_dir() : 
'')


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