diff options
author | Kali Kaneko <kali@futeisha.org> | 2015-07-22 16:34:45 -0400 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2015-07-22 16:34:45 -0400 |
commit | 3215a470f701962fadfd26a996e8eef6f21444b5 (patch) | |
tree | 3188437ce6d4b95905c6c86a34203a4b72397977 /setup.py | |
parent | f3261e937390fa703392d1234d47c00647285d42 (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 'setup.py')
-rw-r--r-- | setup.py | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -27,7 +27,7 @@ versioneer.versionfile_build = 'leap/mx/_version.py' versioneer.tag_prefix = '' # tags are like 1.2.0 versioneer.parentdir_prefix = 'leap.mx-' -from pkg.utils.reqs import parse_requirements +from pkg.utils.reqs import parse_requirements, is_develop_mode trove_classifiers = [ 'Development Status :: 3 - Alpha', @@ -114,6 +114,24 @@ else: # placed by distutils, using whatever interpreter is # available. data_files = [("/usr/local/bin/", ["pkg/mx.tac"])] + + +requirements = parse_requirements() + +if 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 += parse_requirements( + reqfiles=["pkg/requirements-leap.pip"]) + setup( name='leap.mx', version=VERSION, @@ -134,8 +152,8 @@ setup( namespace_packages=["leap"], package_dir={'': 'src'}, packages=find_packages('src'), - #test_suite='leap.mx.tests', - install_requires=parse_requirements(), + # test_suite='leap.mx.tests', + install_requires=requirements, classifiers=trove_classifiers, data_files=data_files ) |