15
0
forked from pool/python-Beaker
Files
python-Beaker/Beaker-1.6.4-setup_test.patch
Sascha Peilicke 9c326ed958 Accepting request 186405 from home:frispete:python
- fix deps
- enable full testing
- add workaround for TypeError in multiprocessing/util.py
- don't package PKG-INFO

OBS-URL: https://build.opensuse.org/request/show/186405
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=23
2013-08-09 08:26:52 +00:00

21 lines
584 B
Diff

Index: b/setup.py
===================================================================
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,15 @@ import os
import sys
import re
+# 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 setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'beaker', '__init__.py'))