diff setup.py @ 703:1a19ee7d8d8a

server_side: add default theme
author souliane <souliane@mailoo.org>
date Thu, 04 Jun 2015 11:56:34 +0200
parents 9877607c719a
children bf562fb9c273
line wrap: on
line diff
--- a/setup.py	Mon May 11 14:54:41 2015 +0200
+++ b/setup.py	Thu Jun 04 11:56:34 2015 +0200
@@ -290,9 +290,10 @@
       package_dir={'libervia': 'src', 'twisted.plugins': 'src/twisted/plugins'},
       packages=['libervia', 'libervia.common', 'libervia.server', 'twisted.plugins'],
       package_data={'libervia': ['libervia.sh']},
-      data_files=[(os.path.join('share', 'doc', NAME), ['COPYING', 'README', 'INSTALL']),
-                  (os.path.join('share', NAME, C.SERVER_CSS_DIR), [os.path.join(C.SERVER_CSS_DIR, filename) for filename in os.listdir(C.SERVER_CSS_DIR)]),
-                  ],
+      data_files=[(os.path.join('share', 'doc', NAME), ['COPYING', 'README', 'INSTALL']), ] +
+                 [(os.path.join('share', NAME, root),
+                   [os.path.join(root, f) for f in files])
+                  for root, dirs, files in os.walk(C.THEMES_DIR)],
       scripts=[],
       zip_safe=False,
       dependency_links=['http://www.blarg.net/%7Esteveha/pyfeed-0.7.4.tar.gz', 'http://www.blarg.net/%7Esteveha/xe-0.7.4.tar.gz'],