3 # Setup script for myslice+unfold
5 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
11 from distutils.core import setup
13 # we don't have a final list so let's keep it simple for now
14 packages= [ os.path.dirname(init) for init in (glob("*/__init__.py")+glob("*/*/__init__.py")) ]
17 # Avoid troubles : clean /usr/share/unfold/
18 #shutil.rmtree('/usr/share/unfold/')
21 return glob( dir+"/*.png") + glob ( dir+"/*.gif")
23 return glob( dir+"/*.js")
24 def stylesheets (dir):
25 return glob( dir+"/*.css")
27 setup(packages = packages,
28 # xxx somehow this does not seem to show up in debian packaging
29 scripts = [ 'apache/unfold-init-ssl.sh' ],
31 ( '/usr/share/unfold/static/js', javascript('static/js')),
32 ( '/usr/share/unfold/static/css', stylesheets ('static/css')),
33 ( '/usr/share/unfold/static/img', images ('static/img')),
35 ( '/usr/share/unfold/static/img/institutions', images ('static/img/institutions')),
36 ( '/usr/share/unfold/static/img/testbeds', images ('static/img/testbeds')),
37 ( '/usr/share/unfold/static/fonts', glob ('static/fonts/*')),
38 ( '/usr/share/unfold/templates', glob ('templates/*')),
39 ( 'apache', [ 'apache/unfold.conf', 'apache/unfold-ssl.conf', 'apache/unfold.wsgi' ]),
40 ( '/etc/unfold/trusted_roots', []),