Commits

Marc Abramowitz committed 44b3855

setup.py: Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error

Comments (0)

Files changed (1)

+# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
+# in multiprocessing/util.py _exit_function when running `python
+# setup.py test` (see
+# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
+try:
+    import multiprocessing
+except ImportError:
+    pass
+
 from setuptools import setup, find_packages
 import re, os