diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-08-20 10:34:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-08-20 10:34:03 +0300 |
commit | 802db1821bf9b7341cdc129ce7d44ec2eded49d7 (patch) | |
tree | 457591d6b3274cce4f469cd11c1c1cb6a1c34025 | |
parent | 902854e15c8cdbaf48ad17561de2488cf0323453 (diff) | |
download | vmdb2-802db1821bf9b7341cdc129ce7d44ec2eded49d7.tar.gz |
refactor(setup.py): use subprocess.check_call instead of cliapp
-rwxr-xr-x | setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,8 +21,8 @@ from distutils.command.build import build from distutils.command.clean import clean import os import glob +import subprocess -import cliapp import vmdb @@ -43,7 +43,7 @@ class Build(build): def generate_troff(self, program, lang): with open("%s.1%s" % (program, lang), "w") as f: - cliapp.runcmd( + subprocess.check_call( [ "python3", program, @@ -57,13 +57,13 @@ class Build(build): env = dict(os.environ) env["MANWIDTH"] = "80" with open("%s.1.txt" % program, "w") as f: - cliapp.runcmd( + subprocess.check_call( ["man", "-l", "%s.1" % program], ["col", "-b"], stdout=f, env=env ) def format_yarns(self): print("building yarns") - cliapp.runcmd(["make", "-C", "yarns"]) + subprocess.check_call(["make", "-C", "yarns"]) setup( |