diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-03-20 17:35:28 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-03-21 00:55:26 +0530 |
commit | cb59fba01f82dcd3e1d7b614a7a2cd90657d4bf9 (patch) | |
tree | 104ddbbe67c8c30601f3ef020f1537095f0ab83f /recipes | |
parent | 2b90e7b32a9787915177fc29c723a9ae8f9e263a (diff) |
meson.recipe: Use shell.new_call() to output to logfile
subprocess.check_call() outputs to stdout, and that doesn't get
redirected to the log file, which is unnecessarily verbose.
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/build-tools/meson.recipe | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/recipes/build-tools/meson.recipe b/recipes/build-tools/meson.recipe index 2f166ece..fc89051a 100644 --- a/recipes/build-tools/meson.recipe +++ b/recipes/build-tools/meson.recipe @@ -1,6 +1,5 @@ # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python -import subprocess import shutil from pathlib import PurePath, Path @@ -31,9 +30,8 @@ class Recipe(recipe.Recipe): prefix = str(PurePath(self.config.prefix)) else: prefix = self.config.prefix - # Use subprocess.check_call because we don't want to bother with shell quoting - subprocess.check_call([self.config.python_exe, 'setup.py', 'install', '--prefix', prefix], - cwd=self.build_dir) + shell.new_call([self.config.python_exe, 'setup.py', 'install', '--prefix', prefix], + cmd_dir=self.build_dir, env=self.env, logfile=self.logfile) if self.config.platform == Platform.WINDOWS: prefix = Path(self.config.prefix) for f in ('meson.exe', 'meson-script.py'): |