1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-29 22:59:45 +03:00

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
```
This commit is contained in:
Athanasius 2022-02-01 14:14:43 +00:00
parent 1bca798fc6
commit 5aa7b98cf6
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -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',