X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=setup.py;h=782bb21f06c69422d97ee092c7ce684181a958cf;hb=d6794ec1d30898b25d6c0950bd0e02f3327b2999;hp=70c2b3f32bd6d483261621bda3ec22edcb33dc43;hpb=7d14e86bfd9b1f69cd5b3fa32909a04bc2b90375;p=apex-tripleo-heat-templates.git diff --git a/setup.py b/setup.py index 70c2b3f3..782bb21f 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,6 +16,14 @@ # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT 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'], + setup_requires=['pbr>=1.8'], pbr=True)