summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-08-11 10:40:33 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-08-11 10:47:07 +0200
commit7c94bb3d81a1caabe54afef0387d7055e4e08f45 (patch)
tree6b4cc21bcf543fae4bd196d07182e7b776713be6 /setup.py
parent9e0a37dcdf99b52740cdf481c49136ce60e1bd9e (diff)
Move promise package to root directory
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 <cedric.ollivier@orange.com>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py22
1 files changed, 22 insertions, 0 deletions
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)