From 10af51b5a7798a8009a0a7a79b018b3a3a65acf1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Sep 2009 13:35:46 -0600 Subject: [PATCH] IGN:Fix sdist to also include compiled ui files --- setup/install.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup/install.py b/setup/install.py index 100194cce4..63c288ac49 100644 --- a/setup/install.py +++ b/setup/install.py @@ -194,6 +194,14 @@ class Sdist(Command): shutil.copytree(p, self.j(tdir, p)) else: shutil.copy2(p, d) + for x in os.walk(os.path.join(self.SRC, 'calibre')): + for f in x[-1]: + if not f.endswith('_ui.py'): continue + f = os.path.join(x[0], f) + f = os.path.relpath(f) + dest = os.path.join(tdir, self.d(f)) + shutil.copy2(f, dest) + self.info('\tCreating tarfile...') subprocess.check_call(' '.join(['tar', '-czf', self.a(self.DEST), '*']), cwd=tdir, shell=True)