From 6e02f9a4a03404ab458f6eebdd3ceec37458bd41 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Nov 2012 13:14:57 +0530 Subject: [PATCH] Move unrar.pyd out of pylib.zip as the zip loader breaks it --- setup/installer/windows/freeze.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/installer/windows/freeze.py b/setup/installer/windows/freeze.py index 3f23150d2d..89ed778fd4 100644 --- a/setup/installer/windows/freeze.py +++ b/setup/installer/windows/freeze.py @@ -563,9 +563,12 @@ class Win32Freeze(Command, WixMixIn): for x in (self.plugins_dir, self.dll_dir): for pyd in os.listdir(x): if pyd.endswith('.pyd') and pyd not in { - 'sqlite_custom.pyd', 'calibre_style.pyd'}: + 'unrar.pyd', 'sqlite_custom.pyd', 'calibre_style.pyd'}: # sqlite_custom has to be a file for # sqlite_load_extension to work + # For some reason unrar.pyd crashes when processing + # password protected RAR files if loaded from inside + # pylib.zip self.add_to_zipfile(zf, pyd, x) os.remove(self.j(x, pyd))