summaryrefslogtreecommitdiff
path: root/mail/setup.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-07-22 12:23:18 -0400
committerKali Kaneko <kali@leap.se>2015-07-22 16:38:30 -0400
commit46de0ce8859d9fb5265b90e38bbc05138a254cc3 (patch)
treef805e2e55af3c9c6879eddd09c3b85ac5502be94 /mail/setup.py
parent1646b018bda0d40b38c747932029a41b8a7c8536 (diff)
[pkg] separate leap requirements
this is part of a process to make the setup of the development mode less troublesome. from now on, setting up a virtualenv in pure development mode will be as easy as telling pip to just install the external dependencies:: pip install -r pkg/requirements.pip and traversing all the leap repos for the needed leap dependencies doing:: python setup.py develop - Related: #7288
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']),
)