Fix version output when missing.
[plcapi.git] / setup.py
1 #!/usr/bin/python
2 #
3 # Setup script for PLCAPI
4 #
5 # Mark Huang <mlhuang@cs.princeton.edu>
6 # Copyright (C) 2006 The Trustees of Princeton University
7 #
8 # $Id$
9 # $URL$
10 #
11
12 from distutils.core import setup
13 from glob import glob
14
15 setup(py_modules = ['ModPython'],
16       packages = ['PLC', 'PLC/Methods', 'PLC/Methods/system', 'PLC/Accessors', 'aspects'],
17       scripts = ['plcsh', 'Server.py'],
18       data_files = [
19         ('', ['planetlab5.sql']),
20         ('php', ['php/plc_api.php']),
21         ('migrations', 
22          ['migrations/README.txt',
23           'migrations/extract-views.py'] 
24          + glob('migrations/[0-9][0-9][0-9]*')),
25         ('extensions', ['extensions/README.txt']),
26         ])