aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r--mesonbuild/modules/python.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index bd69244..a0ebe0e 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -42,9 +42,8 @@ mod_kwargs -= set(['name_prefix', 'name_suffix'])
def run_command(python, command):
- _, stdout, _ = mesonlib.Popen_safe(python.get_command() + [
- '-c',
- command])
+ cmd = python.get_command() + ['-c', command]
+ _, stdout, _ = mesonlib.Popen_safe(cmd)
return stdout.strip()
@@ -265,8 +264,7 @@ class PythonDependency(ExternalDependency):
return super().get_pkgconfig_variable(variable_name, kwargs)
-INTROSPECT_COMMAND = '''
-import sysconfig
+INTROSPECT_COMMAND = '''import sysconfig
import json
import sys