Blame 0009-unicode_check-do-not-try-to-check-pyuic-generated-fi.patch

5f720ea
From f39eff0117e1b789caad121e79b193b38fed8cf7 Mon Sep 17 00:00:00 2001
5f720ea
From: Eli Schwartz <eschwartz@archlinux.org>
5f720ea
Date: Mon, 22 Jul 2019 11:20:50 -0400
5f720ea
Subject: [PATCH 09/71] unicode_check: do not try to check pyuic-generated
5f720ea
 files
5f720ea
5f720ea
---
5f720ea
 setup/port.py | 3 ++-
5f720ea
 1 file changed, 2 insertions(+), 1 deletion(-)
5f720ea
5f720ea
diff --git a/setup/port.py b/setup/port.py
5f720ea
index ecd09e2e9e..401764fcb7 100644
5f720ea
--- a/setup/port.py
5f720ea
+++ b/setup/port.py
5f720ea
@@ -72,7 +72,8 @@ class Base(Command):
5f720ea
     def get_files(self):
5f720ea
         from calibre import walk
5f720ea
         for path in walk(os.path.join(self.SRC, 'calibre')):
5f720ea
-            if path.endswith('.py') and not os.path.basename(path) in self.EXCLUDED_BASENAMES:
5f720ea
+            if (path.endswith('.py') and not path.endswith('_ui.py') and not
5f720ea
+                    os.path.basename(path) in self.EXCLUDED_BASENAMES):
5f720ea
                 yield path
5f720ea
 
5f720ea
     def file_hash(self, f):