[d-feet: 2/3] build: make the python installation used configurable



commit be215eb86f83246a418fc36208ce2e54b60adb59
Author: Chris Mayo <aklhfex gmail com>
Date:   Mon Mar 23 19:48:44 2020 +0000

    build: make the python installation used configurable
    
    Meson does not always find the desired installation.

 meson.build       | 3 ++-
 meson_options.txt | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index af1a373..4d3ee71 100644
--- a/meson.build
+++ b/meson.build
@@ -11,6 +11,7 @@ df_prefix = get_option('prefix')
 df_bindir = get_option('bindir')
 df_datadir = get_option('datadir')
 df_libdir = get_option('libdir')
+df_python = get_option('python')
 
 df_pkgdatadir = df_datadir / df_name
 df_pkglibdir = df_libdir / df_name
@@ -19,7 +20,7 @@ df_namespace = 'org.gnome.dfeet'
 
 gnome = import('gnome')
 i18n = import('i18n')
-python = import('python').find_installation('python3')
+python = import('python').find_installation(df_python)
 
 source_root = meson.current_source_dir()
 
diff --git a/meson_options.txt b/meson_options.txt
index 28e83bb..cd83bda 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1 +1,2 @@
 option('tests', type: 'boolean', value: true, description: 'build tests')
+option('python', type: 'string', value: 'python3', description: 'Python installation to use')


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