15
0

Accepting request 183187 from home:frispete:python

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
This commit is contained in:
Sascha Peilicke
2013-07-22 06:33:12 +00:00
committed by Git OBS Bridge
parent 5c1dc1d1f0
commit 2e67e33ef7
4 changed files with 151 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
--- 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)