1. Marc Abramowitz
  2. PasteScript

Commits

Marc Abramowitz  committed 44b3855

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

  • Participants
  • Parent commits 7769793
  • Branches default

Comments (0)

Files changed (1)

File setup.py

View file
+# 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