more thoroughly disable default services; plus, various comments around
[myslice.git] / setup.py
1 #!/usr/bin/python
2 #
3 # Setup script for myslice+unfold
4 #
5 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
6 # INRIA (c) 2013
7
8 import os.path
9 from glob import glob
10 from distutils.core import setup
11
12 # we don't have a final list so let's keep it simple for now
13 packages= [ os.path.dirname(init) for init in (glob("*/__init__.py")+glob("*/*/__init__.py")) ]
14
15 setup(packages = packages,
16       # xxx somehow this does not seem to show up in debian packaging
17       scripts = [ 'apache/unfold-init-ssl.sh' ],
18       data_files = [ 
19           ( '/usr/share/unfold/static/js', glob ('static/js/*')),
20           ( '/usr/share/unfold/static/css', glob ('static/css/*')),
21           ( '/usr/share/unfold/static/img', glob ('static/img/*')),
22           ( '/usr/share/unfold/static/fonts', glob ('static/fonts/*')),
23           ( '/usr/share/unfold/templates', glob ('templates/*')),
24           ( 'apache', [ 'apache/unfold.conf', 'apache/unfold-ssl.conf', 'apache/unfold.wsgi' ]),
25           ( '/etc/unfold/trusted_roots', []),
26           ( '/var/unfold', []),
27         ])