summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug.hellmann@gmail.com>2013-11-13 08:10:11 -0800
committerDoug Hellmann <doug.hellmann@gmail.com>2013-11-13 08:10:11 -0800
commitcc4e5c18dc5bc9d39adc2107342002c7239e14ae (patch)
treecdd3b2f32a90afd1d0f78a3f3a84c892e4fe73a8
parenta8b00d7c2b11516cc86da94ec35c5576bc767220 (diff)
parent74a719b11781cc93d60cff1b0a01de3e4e780a1d (diff)
downloadstevedore-cc4e5c18dc5bc9d39adc2107342002c7239e14ae.tar.gz
Merge pull request #30 from philiptzou/patch-1
a work-around to avoid cpython bug with atexit (15881)
-rw-r--r--setup.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index fc53c37..a487b83 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,14 @@
#!/usr/bin/env python
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>=0.5.21,<1.0'],
pbr=True)