diff options
author | Doug Hellmann <doug.hellmann@gmail.com> | 2013-11-13 08:10:11 -0800 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@gmail.com> | 2013-11-13 08:10:11 -0800 |
commit | cc4e5c18dc5bc9d39adc2107342002c7239e14ae (patch) | |
tree | cdd3b2f32a90afd1d0f78a3f3a84c892e4fe73a8 | |
parent | a8b00d7c2b11516cc86da94ec35c5576bc767220 (diff) | |
parent | 74a719b11781cc93d60cff1b0a01de3e4e780a1d (diff) | |
download | stevedore-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.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |