forked from openalea/openalea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmultisetup.py
73 lines (59 loc) · 1.56 KB
/
multisetup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/env/python
# -*- python -*-
#
# Multisetup
#
# Distributed under the Cecill-C License.
# See accompanying file LICENSE.txt or copy at
# http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
#
# OpenAlea WebSite : http://openalea.gforge.inria.fr
#
#testing buildbot
"""
Multisetup allows to build and install all the packages of OpenAlea
found in this directory.
:Examples:
# Developer mode : Installation of the packages
python multisetup.py develop
python multisetup.py nosetests -w test
# User mode: Installation of the packages on the system as root
python multisetup.py install
# Administrator mode: Create distribution of the packages
python multisetup.py nosetests -w test install bdist_egg -d ../dist sdist -d ../dist
.. todo::
- multisetup -h
* list of the options
"""
import os
import sys
try:
from openalea.misc.multisetup import Multisetup
except ImportError:
print 'Install OpenAlea.Deploy first'
try:
sys.path.insert(0, os.path.join('misc', 'src', 'openalea', 'misc'))
from multisetup import Multisetup
except ImportError as e:
print e
dirs = """
vpltk
misc
core
grapheditor
visualea
oalab
""".split()
#plantlab
#openalea_meta
def main():
args = sys.argv[1:]
if len(args) == 1 and args[0] in ['-h', '--help']:
Multisetup.help()
else:
if 'develop -u' in args:
dirs.reverse()
mysetup = Multisetup(curdir='.', commands=args, packages=dirs)
mysetup.run()
if __name__ == '__main__':
main()