diff options
author | scoder <none@none> | 2010-06-21 20:08:03 +0200 |
---|---|---|
committer | scoder <none@none> | 2010-06-21 20:08:03 +0200 |
commit | 1e2369b6e25f69d84d503debf62ca08abd1f1c8d (patch) | |
tree | de4b80123a19ada985768d6edef43fb24f5a613d /buildlibxml.py | |
parent | 9fad5ea8bdd8303c01f6d5fc2d9ba5fa5ec1905c (diff) | |
download | python-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.py | 9 |
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 |