From 06dc7dd15bd62061c85c9c4b3a9e13fd60d975f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 28 May 2019 12:41:48 +0530 Subject: [PATCH] Dont scan Zeroconf.py in the porting utils This is being replaced by upstream zeroconf in py3 --- setup/port.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/port.py b/setup/port.py index 0a7ccc2e8f..d49c1dd407 100644 --- a/setup/port.py +++ b/setup/port.py @@ -57,6 +57,7 @@ def run_2to3(path, show_diffs=False): class Base(Command): scan_all_files = False + EXCLUDED_BASENAMES = {'Zeroconf.py'} @property def cache_file(self): @@ -71,7 +72,7 @@ class Base(Command): def get_files(self): from calibre import walk for path in walk(os.path.join(self.SRC, 'calibre')): - if path.endswith('.py'): + if path.endswith('.py') and not os.path.basename(path) in self.EXCLUDED_BASENAMES: yield path def file_hash(self, f):