summaryrefslogtreecommitdiff
path: root/keymanager/setup.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-07-22 16:03:50 -0400
committerKali Kaneko <kali@leap.se>2015-07-22 16:37:25 -0400
commitd700bf5774643b132d635ce744680ac3c3d7b2b4 (patch)
treebf19ef385b4a4f8283e0e1d7f16ea20f057926ec /keymanager/setup.py
parent305d1b4eb65d664eabceadf2201241526172c3cb (diff)
[pkg] do not add leap deps in develop mode
it is the responsibility of the developer to install them now - Related: #7288
Diffstat (limited to 'keymanager/setup.py')
-rw-r--r--keymanager/setup.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/keymanager/setup.py b/keymanager/setup.py
index f554e09..adca6e1 100644
--- a/keymanager/setup.py
+++ b/keymanager/setup.py
@@ -107,9 +107,21 @@ cmdclass["freeze_debianver"] = freeze_debianver
# XXX add ref to docs
-requirements = (
- utils.parse_requirements() +
- utils.parse_requirements(reqfiles=["pkg/requirements-leap.pip"]))
+requirements = utils.parse_requirements()
+
+if utils.is_develop_mode():
+ print
+ print ("[WARNING] Skipping leap-specific dependencies "
+ "because development mode is detected.")
+ print ("[WARNING] You can install "
+ "the latest published versions with "
+ "'pip install -r pkg/requirements-leap.pip'")
+ print ("[WARNING] Or you can instead do 'python setup.py develop' "
+ "from the parent folder of each one of them.")
+ print
+else:
+ requirements += utils.parse_requirements(
+ reqfiles=["pkg/requirements-leap.pip"])
setup(
name='leap.keymanager',