From 7c94bb3d81a1caabe54afef0387d7055e4e08f45 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 11 Aug 2017 10:40:33 +0200 Subject: Move promise package to root directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems mandatory as Functest must install promise in editable mode. Then npm install can be called in the source directory. It completes "Add promise package" [1] It would have worked well in classical mode. [1] https://gerrit.opnfv.org/gerrit/#/c/38639/ Change-Id: Ia9ae55b127d0d324d97974f5e9b1923d7636d7cd Signed-off-by: Cédric Ollivier --- setup.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a1e9b3b --- /dev/null +++ b/setup.py @@ -0,0 +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 + +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>=1.8'], + pbr=True) -- cgit 1.2.3-korg