X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=setup.py;h=a52d90555fa745065b9980825e6745bccc43596e;hb=9515e36a056ad7f16f39564ae2eeca955054997d;hp=460651cfd129aa81c3fc76a117fec51d82e5277c;hpb=fb3ef61a03cdf2fb938d771e9d23f6435cff240f;p=functest.git diff --git a/setup.py b/setup.py index 460651cfd..a52d90555 100644 --- a/setup.py +++ b/setup.py @@ -9,9 +9,16 @@ # pylint: disable=missing-docstring -from setuptools import setup +import setuptools -setup( - setup_requires=['pbr>=1.9', 'setuptools>=17.1'], - pbr=True, -) +# 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>=1.8'], + pbr=True)