From a55a92c0afba669b95a799b7730900778f684bf4 Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Sat, 2 Jul 2022 15:52:23 +0100 Subject: [PATCH] py2exe: Make newer setuptools happy via `py_modules=[]` Tested with `+setuptools==62.6.0`, which appears to currently be the latest. --- requirements-dev.txt | 4 +--- setup.py | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 671bd300..9564cad8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,9 +5,7 @@ wheel # We can't rely on just picking this up from either the base (not venv), # or venv-init-time version. Specify here so that dependabot will prod us # about new versions. -## Anything later than 60.10.0 complains about auto-discovering multiple -## packages. ref: <https://github.com/py2exe/py2exe/issues/136> -setuptools==60.10.0 +setuptools==62.6.0 # Static analysis tools flake8==4.0.1 diff --git a/setup.py b/setup.py index 22975678..c078e225 100755 --- a/setup.py +++ b/setup.py @@ -268,6 +268,7 @@ setup( ], data_files=DATA_FILES, options=OPTIONS, + py_modules=[], ) package_filename = None