From ada18bade1e593de9d0c14618609389af18cedb5 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 30 Aug 2013 14:08:50 +0900 Subject: workaround a python bug without this patch, "python ./setup.py install" produced the following errors with python 2.7.3 on ubuntu 12.04. Error in sys.exitfunc: Traceback (most recent call last): File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/usr/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function info('process shutting down') TypeError: 'NoneType' object is not callable Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 6df305e6..14553468 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +# a bug workaround. http://bugs.python.org/issue15881 +try: + import multiprocessing +except ImportError: + pass + import setuptools import os -- cgit v1.2.3