From 61348da069bd3afe28a9de03e7792e20a9cb2eac Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 10 Apr 2018 15:01:05 -0400 Subject: Add 'disabler' argument to functions returning not-found objects When dependency(), find_library(), find_program(), or python.find_installation() return a not-found object and disabler is true, they return a Disabler object instead. --- docs/markdown/Python-module.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/markdown/Python-module.md') diff --git a/docs/markdown/Python-module.md b/docs/markdown/Python-module.md index 2bcad78..93005ea 100644 --- a/docs/markdown/Python-module.md +++ b/docs/markdown/Python-module.md @@ -48,6 +48,9 @@ Keyword arguments are the following: whether it was found or not. Since *0.48.0* the value of a [`feature`](Build-options.md#features) option can also be passed to the `required` keyword argument. +- `disabler`: if `true` and no python installation can be found, return a + [disabler object](#disabler-object) instead of a not-found object. + *Since 0.49.0* **Returns**: a [python installation][`python_installation` object] -- cgit v1.1