aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lacko <backup.rlacko@gmail.com>2013-06-05 12:25:38 +0200
committerRoman Lacko <backup.rlacko@gmail.com>2013-06-05 12:25:38 +0200
commit27506d902375be214423ea3431c5cb4c2244f895 (patch)
tree93a24eec1b44208cffaeb49022f21d49ee7d9acf
parent6f660492a55560d523935e908275226ee2bd2b92 (diff)
Fixed compiling modules with empty --jobs option when running on Linux
-rw-r--r--setup.py5
1 files changed, 4 insertions, 1 deletions
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":