blob: 5804e3e90151ac3cb90734ab415991e66f9f6e9b [file] [log] [blame]
Dennis Dmitriev566db4b2017-07-18 18:13:07 +03001# Copyright 2013 - 2017 Mirantis, Inc.
Dennis Dmitrieve56c8b92017-06-16 01:53:16 +03002#
Dennis Dmitriev566db4b2017-07-18 18:13:07 +03003# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
Dennis Dmitrieve56c8b92017-06-16 01:53:16 +03006#
Dennis Dmitriev566db4b2017-07-18 18:13:07 +03007# http://www.apache.org/licenses/LICENSE-2.0
Dennis Dmitrieve56c8b92017-06-16 01:53:16 +03008#
Dennis Dmitriev566db4b2017-07-18 18:13:07 +03009# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
Dennis Dmitrieve56c8b92017-06-16 01:53:16 +030014
Dennis Dmitrieve56c8b92017-06-16 01:53:16 +030015import setuptools
16
17# In python < 2.7.4, a lazy loading of package `pbr` will break
18# setuptools if some other modules registered functions in `atexit`.
19# solution from: http://bugs.python.org/issue15881#msg170215
20try:
21 import multiprocessing # noqa
22except ImportError:
23 pass
24
25setuptools.setup(
26 setup_requires=['pbr'],
27 pbr=True)