source: TI05-delivery/trunk/setup.py @ 1541

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/setup.py@3672
Revision 1541, 1016 bytes checked in by spascoe, 13 years ago (diff)

Major directory structure reorganisation.

The python source tree is now divided into 3 components: common,
server and client. Each component has it's own setup.py.

Do "python setup.py bdist_egg" to create 3 eggs for each component.

Some things in the distribution are now out of sync (e.g. documentation) but
the test cases work (I havn't tried the remote test cases).

Line 
1"""Built bbftp embedded in python.
2
3This is a meta-setup to run setup.py on the 3 separate components.
4
5"""
6
7import sys, os
8
9#!TODO: Documentation generation is broken since moving to 3 separate components
10## class Doc(Command):
11##     """Build epydoc and doxygen documentation.
12##     """
13
14##     user_options = []
15
16##     def initialize_options(self):
17##         pass
18##     def finalize_options(self):
19##         pass
20
21##     def run(self):
22##         cmd = ('epydoc -o doc/epydoc -v --docformat javadoc '
23##                '--name "NDG Delivery Service" build/lib*/pybbftp/')
24##         self.execute(os.system, (cmd,))
25##         self.execute(os.system, ('doxygen',))
26
27
28def doSetup(dir):
29    dist_dir = os.getcwd()
30    os.chdir(dir)
31    execfile('setup.py')
32    os.chdir(dist_dir)
33
34if not os.path.exists('./dist'):
35    os.mkdir('./dist')
36
37for c in ('common', 'server', 'client'):
38    print 'Seting up component %s' % c
39    doSetup('./components/%s' % c)
40    os.system('cp ./components/%s/dist/*.egg ./dist' % c)
Note: See TracBrowser for help on using the repository browser.