From fe7d51f0695e71deedd989145010f9728ca3a4c0 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Thu, 16 Jan 2014 21:12:05 +0100 Subject: [PATCH] Use distutils.spawn.spawn() instead of subprocess.call(), simplify code --- setup.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 77658730e..259cbf6b0 100755 --- a/setup.py +++ b/setup.py @@ -340,9 +340,7 @@ class picard_get_po_files(Command): '--all', '--minimum-perc=%d' % self.minimum_perc ] - log.info("Running %s" % " ".join(txpull_cmd)) - retcode = subprocess.call(txpull_cmd) - _exit(exitcode=retcode) + self.spawn(txpull_cmd) _regen_pot_description = "Regenerate po/picard.pot, parsing source tree for new or updated strings" @@ -410,10 +408,7 @@ class picard_update_countries(Command): '--source', '--language=none', ] - log.info("Running %s" % " ".join(txpull_cmd)) - retcode = subprocess.call(txpull_cmd) - if retcode: - _exit("Failed to update countries.pot", retcode) + self.spawn(txpull_cmd) potfile = os.path.join('po', 'countries', 'countries.pot') isocode_comment = u'iso.code:'