summaryrefslogtreecommitdiff
path: root/mail/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'mail/setup.py')
-rw-r--r--mail/setup.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/mail/setup.py b/mail/setup.py
index 499a9ee..ead8982 100644
--- a/mail/setup.py
+++ b/mail/setup.py
@@ -111,6 +111,22 @@ cmdclass["freeze_debianver"] = freeze_debianver
# XXX add ref to docs
+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.mail',
version=VERSION,
@@ -130,7 +146,7 @@ setup(
package_dir={'': 'src'},
packages=find_packages('src'),
test_suite='leap.mail.load_tests.load_tests',
- install_requires=utils.parse_requirements(),
+ install_requires=requirements,
tests_require=utils.parse_requirements(
reqfiles=['pkg/requirements-testing.pip']),
)