diff --git a/scripts/pyinstaller.py b/scripts/pyinstaller.py index 58303547..344b3d6a 100755 --- a/scripts/pyinstaller.py +++ b/scripts/pyinstaller.py @@ -43,6 +43,10 @@ def main(): "--onefile", "--console", "--name", name, + + # https://github.com/pyinstaller/pyinstaller/issues/9149 + "--exclude-module", "pkg_resources", + "--additional-hooks-dir", util.path("scripts"), "--distpath", util.path("dist"), "--workpath", util.path("build"),