From e0d3fdcd9dc214e6e6e5cc0f7d92be5ab2ab275e Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Mon, 12 Dec 2016 22:53:46 +0100 Subject: [PATCH] Might help if I at least /try/ to include all the theme specific css files. --- setup.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup.py b/setup.py index b7d093ae..95505a5f 100755 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ from terminatorlib.version import APP_NAME, APP_VERSION PO_DIR = 'po' MO_DIR = os.path.join('build', 'mo') +CSS_DIR = os.path.join('terminatorlib', 'themes') class TerminatorDist(Distribution): global_options = Distribution.global_options + [ @@ -131,6 +132,7 @@ class Uninstall(Command): class InstallData(install_data): def run (self): + self.data_files.extend (self._find_css_files ()) self.data_files.extend (self._find_mo_files ()) install_data.run (self) if not self.distribution.without_icon_cache: @@ -155,6 +157,17 @@ class InstallData(install_data): return data_files + def _find_css_files (self): + data_files = [] + + for css_dir in glob.glob (os.path.join (CSS_DIR, '*')): + srce = os.path.join(css_dir, 'gtk-3.0', 'apps', '*.css') + dest = os.path.join('share', 'terminator', css_dir, 'gtk-3.0', 'apps') + data_files.append((dest, srce)) + + return data_files + + class Test(Command): user_options = [] def initialize_options(self):