From 5aa7b98cf6324b1ff2fe9c4f4c3f42914a634b25 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 1 Feb 2022 14:14:43 +0000 Subject: [PATCH] setup.py: Add `util/` to win32 packages Currently only `plugins/eddn.py` imports anything from `util/`, and as the core plugins are dynamically loaded py2exe can't possibly know about this. So we need to specify it explictly. Tested with build and install, and also manually checking the resulting library.zip: ``` 0$ unzip -l library.zip | grep 'util/' 10582 2022-02-01 14:12 urllib3/util/url.pyc 11221 2022-02-01 14:12 urllib3/util/ssl_.pyc 3367 2022-02-01 14:12 urllib3/util/connection.pyc 1031 2022-02-01 14:12 urllib3/util/__init__.pyc 1266 2022-02-01 14:12 urllib3/util/proxy.pyc 3394 2022-02-01 14:12 urllib3/util/request.pyc 8863 2022-02-01 14:12 urllib3/util/timeout.pyc 986 2022-02-01 14:12 urllib3/util/queue.pyc 7332 2022-02-01 14:12 urllib3/util/ssltransport.pyc 1105 2022-02-01 14:12 util/text.pyc 3015 2022-02-01 14:12 urllib3/util/wait.pyc 110 2022-02-01 14:12 util/__init__.pyc 15704 2022-02-01 14:12 urllib3/util/retry.pyc 2279 2022-02-01 14:12 urllib3/util/response.pyc ``` --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index f73dc370..57383fe7 100755 --- a/setup.py +++ b/setup.py @@ -192,6 +192,7 @@ elif sys.platform == 'win32': 'optimize': 2, 'packages': [ 'sqlite3', # Included for plugins + 'util', # 2022-02-01 only imported in plugins/eddn.py ], 'includes': [ 'dataclasses',