From d700bf5774643b132d635ce744680ac3c3d7b2b4 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 22 Jul 2015 16:03:50 -0400 Subject: [pkg] do not add leap deps in develop mode it is the responsibility of the developer to install them now - Related: #7288 --- keymanager/setup.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'keymanager/setup.py') 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', -- cgit v1.2.3