diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-03-30 06:52:41 -0400 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-03-30 06:53:48 -0400 |
commit | 33cdf9599104a610e2681614ec010a4c2a8ac112 (patch) | |
tree | 29651645279f6f055da852a789d45fea765d0797 | |
parent | aa8654d4f3f727f99016aaa540c8d5aa3f79edcb (diff) |
bugfix of pbr after updating
JIRA: DOVETAIL-388
Change-Id: I3611624c955fa735aabfd00b456bd7f8455080e5
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
-rw-r--r-- | setup.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |