From ef9f5a6d829c270ea7f86c45268c4e3fba18ecbe Mon Sep 17 00:00:00 2001 From: OpenStack Proposal Bot Date: Fri, 3 Nov 2017 18:00:00 +0000 Subject: [PATCH] Updated from global requirements Change-Id: Id5a731fafc47319159795c558280e9cb6154bf2b --- setup.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 48fd53a..566d844 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python -# Copyright (c) 2016 Internap Inc. +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,8 +14,16 @@ # limitations under the License. # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT - import setuptools -setuptools.setup(setup_requires=['pbr'], - pbr=True) +# 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>=2.0.0'], + pbr=True)