-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmultisetup.py
64 lines (50 loc) · 1.33 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
#!/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, sys
from openalea.deploy.multisetup import Multisetup
dirs = """
stdlib
numpy
pylab
""".split()
#image
#openalea_meta
#pkg_builder
#svgdraw
#scheduler
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()