From 6e77443df3a6faa0c8c1fef0136a92f26609c72e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 20 Jun 2013 21:58:11 -0700 Subject: Only add OPTION_JOBS to the command line if it's set --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 0ff5dfbb3..ac11e6a77 100644 --- a/setup.py +++ b/setup.py @@ -578,7 +578,10 @@ class pyside_build(_build): raise DistutilsSetupError("Error configuring " + extension) log.info("Compiling module %s..." % extension) - if run_process([self.make_path, OPTION_JOBS], log) != 0: + cmd_make = [self.make_path] + if OPTION_JOBS: + cmd_make.append(OPTION_JOBS) + if run_process(cmd_make, log) != 0: raise DistutilsSetupError("Error compiling " + extension) if extension.lower() == "shiboken": -- cgit v1.2.3