From bc5593aa448a68b6d13d98b5acdb1dbb98c02f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 22 Jul 2021 22:07:25 +0200 Subject: [PATCH] setup: Use subprocess.check_call instead of os.system --- tools/setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/setup.py b/tools/setup.py index b495e89a..773f591a 100755 --- a/tools/setup.py +++ b/tools/setup.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 -import os import platform from pathlib import Path +import subprocess import sys import tarfile import tempfile @@ -74,7 +74,8 @@ def create_build_dir(): print("build directory already exists: nothing to do") return - os.system("cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=toolchain/ToolchainNX64.cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -B build/") + subprocess.check_call( + "cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=toolchain/ToolchainNX64.cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -B build/".split(" ")) print(">>> created build directory")