Commits

Laurent Bachelier committed f8119e9

Make setup.py test work

  • Participants
  • Parent commits 5d5969e

Comments (0)

Files changed (1)

 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
+# 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
 
 setup(