diff options
author | Kali Kaneko <kali@leap.se> | 2015-07-22 12:36:41 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-07-22 16:40:24 -0400 |
commit | 82c8989ddbcc57befca806495b7040efd0cb0d4e (patch) | |
tree | 07d9d59bda1b461ee4ed2857bc4d022449770c08 /server/setup.py | |
parent | 8074dcfff4bf2304d581efe8a01174a2dd1288eb (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 'server/setup.py')
-rw-r--r-- | server/setup.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/server/setup.py b/server/setup.py index 124ddd32..e7ccb4dc 100644 --- a/server/setup.py +++ b/server/setup.py @@ -116,6 +116,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.soledad.server', version=VERSION, @@ -138,6 +154,6 @@ setup( namespace_packages=["leap", "leap.soledad"], packages=find_packages('src'), package_dir={'': 'src'}, - install_requires=utils.parse_requirements(), + install_requires=requirements, data_files=data_files ) |