diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-11-15 14:26:17 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-10-09 09:32:26 +0800 |
commit | c882c281913d37e76ee9b839c5b4845de8094787 (patch) | |
tree | 7047fa4aac4921e1067da190d3a9246040dfd593 /meson_options.txt | |
parent | 6d053ec0a4108be59f5e30a04ab4e6539e694e53 (diff) | |
download | libpeas-c882c281913d37e76ee9b839c5b4845de8094787.tar.gz |
meson: Improve Python detection on Windows
Standard Windows binaries from www.python.org typically come as an MSI
installer, which do not include pkg-config files for us, and it is often
the case that people have multiple installations of Python on their
systems, such as having both 32-bit and 64-bit installations of Python,
so we need to go a bit harder to look for Python 2,x/3.x installations,
by:
-Allow people to explicitly input a full path to their Python 2.x/3.x
interpreters, so that the right include/lib paths for the desired
Python installation(s) can be discovered and utilized.
-If no explicit path is specified, let Meson's Python module look for
the installations for us instead.
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 18e1779..9c4a4bf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,6 +9,13 @@ option('python3', type: 'boolean', value: true, description: 'Enable Python 3 support (requires pygobject)') +option('python2_path', + type: 'string', value: '', + description: 'Path to Python 2.x interpreter (Windows only)') +option('python3_path', + type: 'string', value: '', + description: 'Path to Python 3.x interpreter (Windows only)') + option('introspection', type: 'boolean', value: true, description: 'Generate introspection data (requires gobject-introspection)') |