From 09400aab33c46b7136bf7d0fab149641578e3c77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 3 Jan 2010 10:42:01 +0100
Subject: Catch problem when multiprocessing module isn't supported in Python.


diff --git a/SConstruct b/SConstruct
index 7024239..d90b712 100644
--- a/SConstruct
+++ b/SConstruct
@@ -56,8 +56,11 @@ def SConscript(*arguments, **keywords) :
   
 # Max out the number of jobs
 if env["max_jobs"] :
-	import multiprocessing
-	SetOption("num_jobs", multiprocessing.cpu_count())
+	try :
+		import multiprocessing
+		SetOption("num_jobs", multiprocessing.cpu_count())
+	except NotImplementedError :
+		pass
 
 # Default compiler flags
 env["CCFLAGS"] = env.get("ccflags", [])
-- 
cgit v0.10.2-6-g49f6