summaryrefslogtreecommitdiff
path: root/buildlibxml.py
diff options
context:
space:
mode:
authorscoder <none@none>2010-06-21 20:08:03 +0200
committerscoder <none@none>2010-06-21 20:08:03 +0200
commit1e2369b6e25f69d84d503debf62ca08abd1f1c8d (patch)
treede4b80123a19ada985768d6edef43fb24f5a613d /buildlibxml.py
parent9fad5ea8bdd8303c01f6d5fc2d9ba5fa5ec1905c (diff)
downloadpython-lxml-1e2369b6e25f69d84d503debf62ca08abd1f1c8d.tar.gz
[svn r4424] r5612@lenny: sbehnel | 2010-06-21 20:07:58 +0200
prevent unrelated multiprocessing errors from breaking the build --HG-- branch : trunk
Diffstat (limited to 'buildlibxml.py')
-rw-r--r--buildlibxml.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/buildlibxml.py b/buildlibxml.py
index 65bf0b68..bfcf3e41 100644
--- a/buildlibxml.py
+++ b/buildlibxml.py
@@ -10,15 +10,14 @@ except ImportError:
multi_make_options = []
try:
- from multiprocessing import cpu_count
-except ImportError:
- pass
-else:
- cpus = cpu_count()
+ import multiprocessing
+ cpus = multiprocessing.cpu_count()
if cpus > 1:
if cpus > 5:
cpus = 5
multi_make_options = ['-j%d' % (cpus+1)]
+except:
+ pass
# use pre-built libraries on Windows