X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=modules%2Fsetup.py;h=46309ef1c5c9a07fef3c4d3fee5ed113ff86c57d;hb=f7df2d437f5b4b15d3c374da4d24b137cc672916;hp=8ac5ceac3f65b13c3c8599c0daf93ec3799cba10;hpb=c6311f43a1d0bb366f9a789af49beb8c1fd9779e;p=releng.git diff --git a/modules/setup.py b/modules/setup.py index 8ac5ceac3..46309ef1c 100644 --- a/modules/setup.py +++ b/modules/setup.py @@ -1,25 +1,22 @@ -############################################################################## +#!/usr/bin/env python + +# Copyright (c) 2017 Orange and others. +# # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -from setuptools import setup, find_packages +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 -setup( - name="opnfv", - version="danube", - packages=find_packages(), - include_package_data=True, - package_data={ - }, - url="https://www.opnfv.org", - install_requires=["paramiko>=2.0.1", - "mock==1.3.0", - "nose==1.3.7", - "coverage==4.1", - "requests==2.9.1"] -) +setuptools.setup( + setup_requires=['pbr>=2.0.0'], + pbr=True)