[totem/wip/inigomartinez/meson-improve: 15/16] build: Do not use a variable for python3 module
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/inigomartinez/meson-improve: 15/16] build: Do not use a variable for python3 module
- Date: Wed, 21 Feb 2018 11:06:27 +0000 (UTC)
commit f0c770383bdbf991fea3d6a2de755a1db717902a
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Wed Feb 21 11:07:17 2018 +0100
build: Do not use a variable for python3 module
The python3 module is used in meson only to check that a recent
version is available, so there is no need to store the module in a
variable for any other use.
meson.build | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 544f467..eb33c1f 100644
--- a/meson.build
+++ b/meson.build
@@ -180,9 +180,7 @@ config_h.set('ENABLE_MISSING_PLUGIN_INSTALLATION', enable_easy_codec_installatio
# python support
enable_python = get_option('python')
if enable_python
- py3 = import('python3')
-
- assert(py3.find_python().found(), 'python3 required for python support')
+ assert(import('python3').find_python().found(), 'python3 required for python support')
assert(find_program('pylint-3', 'pylint3', 'pylint', required: false).found(), 'pylint required for python
support')
pygobject_dep = dependency('pygobject-3.0', version: '>= 2.90.3')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]