1From db94983c93f38bd8494b47d9fa1b3e5368dc9abe Mon Sep 17 00:00:00 2001 2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> 3Date: Wed, 11 Dec 2019 01:34:01 +0100 4Subject: [PATCH] Make python path configurable 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9Upstream-Status: Inappropriate [Configuration] 10 11Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> 12--- 13 meson.build | 2 +- 14 meson_options.txt | 2 ++ 15 2 files changed, 3 insertions(+), 1 deletion(-) 16 create mode 100644 meson_options.txt 17 18diff --git a/meson.build b/meson.build 19index 5b824e9..a673d9c 100644 20--- a/meson.build 21+++ b/meson.build 22@@ -18,7 +18,7 @@ bindir = join_paths(prefix, get_option('bindir')) 23 datadir = join_paths(prefix, get_option('datadir')) 24 libexecdir = join_paths(prefix, get_option('libexecdir')) 25 localedir = join_paths(prefix, get_option('localedir')) 26-pythondir = join_paths(prefix, python3.get_path('purelib')) 27+pythondir = get_option('python_site_dir') 28 29 pkgdatadir = join_paths(datadir, meson.project_name()) 30 31diff --git a/meson_options.txt b/meson_options.txt 32new file mode 100644 33index 0000000..03455ca 34--- /dev/null 35+++ b/meson_options.txt 36@@ -0,0 +1,2 @@ 37+option('python_site_dir', type: 'string', value: '') 38+ 39-- 402.21.0 41 42