From 33cdf9599104a610e2681614ec010a4c2a8ac112 Mon Sep 17 00:00:00 2001 From: MatthewLi Date: Thu, 30 Mar 2017 06:52:41 -0400 Subject: bugfix of pbr after updating JIRA: DOVETAIL-388 Change-Id: I3611624c955fa735aabfd00b456bd7f8455080e5 Signed-off-by: MatthewLi --- setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.py b/setup.py index a84dd400..03ea2988 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,14 @@ import setuptools +# In python < 2.7.4, a lazy loading of package `pbr` will break +# setuptools if some other modules registered functions in `atexit`. +# solution from: http://bugs.python.org/issue15881#msg170215 +try: + import multiprocessing # noqa +except ImportError: + pass + setuptools.setup( setup_requires=['pbr==2.0.0'], pbr=True) -- cgit 1.2.3-korg