summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-27 14:56:27 +0000
committerGerrit Code Review <review@openstack.org>2015-08-27 14:56:27 +0000
commit0289a61f6271281f7af616faf6fbcf8ca47df0d5 (patch)
treef0a4cc0ee92931230707c0dd589e2dd2e48b02f6 /setup.py
parentdfdbfe23bd955ecc69f7a79c748fd2ffac503075 (diff)
parentc213ffda17d09a68fdbb619ba6db4b8a101e85a9 (diff)
downloadpython-swiftclient-stable/juno.tar.gz
Merge "Update from global requirements" into stable/junojuno-eol2.3.2stable/juno
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 70c2b3f..056c16c 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'],
pbr=True)