Merge "Work around atexit bug in python < 2.7.4"

This commit is contained in:
Jenkins 2014-04-12 02:12:27 +00:00 committed by Gerrit Code Review
commit ea444a23ff

View File

@ -17,6 +17,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 # flake8: noqa
except ImportError:
pass
setuptools.setup(
setup_requires=['pbr'],
pbr=True)