fix build and test rig OBS-URL: https://build.opensuse.org/request/show/183187 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=49
19 lines
657 B
Diff
19 lines
657 B
Diff
--- setup.py~ 2013-02-08 01:10:48.000000000 +0100
|
|
+++ setup.py 2013-07-15 21:49:07.339738788 +0200
|
|
@@ -7,6 +7,15 @@ Please see README for basic installation
|
|
import os
|
|
import re
|
|
import sys
|
|
+# Hack to prevent "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 distutils.command.build_ext import build_ext
|
|
from distutils.errors import (CCompilerError, DistutilsExecError,
|
|
DistutilsPlatformError)
|