From: MatthewLi Date: Thu, 30 Mar 2017 10:52:41 +0000 (-0400) Subject: bugfix of pbr after updating X-Git-Tag: ovp.0.9.0~203^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=33cdf9599104a610e2681614ec010a4c2a8ac112;p=dovetail.git bugfix of pbr after updating JIRA: DOVETAIL-388 Change-Id: I3611624c955fa735aabfd00b456bd7f8455080e5 Signed-off-by: MatthewLi --- 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)