Merge "Work around atexit bug in python < 2.7.4"

This commit is contained in:
Jenkins 2014-04-30 02:36:50 +00:00 committed by Gerrit Code Review
commit 0971171164
1 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,14 @@ _setup_py_text = """#!/usr/bin/env python
# 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'],
pbr=True)