diff options
author | Aleksey Filippov <alekseyf@google.com> | 2018-02-18 02:20:37 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-02-18 13:50:33 +0200 |
commit | 8baaa7b86628163205b59c449f1fedf8bffd21a8 (patch) | |
tree | 90010abc015b63cb9aeb8fa97bb8aa5291b363f4 | |
parent | 8c12c2acc3a4d25689aab73425d98ceb895a29bf (diff) | |
download | meson-8baaa7b86628163205b59c449f1fedf8bffd21a8.zip meson-8baaa7b86628163205b59c449f1fedf8bffd21a8.tar.gz meson-8baaa7b86628163205b59c449f1fedf8bffd21a8.tar.bz2 |
Add python3 dependency documentation and link it from python3 module
Closes #3009
-rw-r--r-- | docs/markdown/Dependencies.md | 12 | ||||
-rw-r--r-- | docs/markdown/Python-3-module.md | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 6653cc1..74a918a 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -252,3 +252,15 @@ llvm_dep = dependency( 'llvm', version : '>= 4.0', modules : ['amdgpu'], optional_modules : ['inteljitevents'], ) ``` + +## Python3 + +Python3 is handled specially by meson: +1. Meson tries to use `pkg-config`. +1. If `pkg-config` fails meson uses fallback: + - On Windows fallback is current `python3` interpreter. + - On OSX fallback is framework dependency from `/Library/Frameworks`. + +Note that `python3` found by this dependency might differ from the one used in +`python3` module because modules uses current interpreter but dependency tries +`pkg-config` first. diff --git a/docs/markdown/Python-3-module.md b/docs/markdown/Python-3-module.md index dc6f571..7dda672 100644 --- a/docs/markdown/Python-3-module.md +++ b/docs/markdown/Python-3-module.md @@ -18,6 +18,10 @@ conventions of the target platform. All positional and keyword arguments are the same as for [shared_module](Reference-manual.md#shared_module). +`extension_module` does not add any dependencies to the library so user may +need to add `dependencies : dependency('python3')`, see +[Python3 dependency](Dependencies.md#Python3). + *Added 0.38.0* ## language_version |