This used to work with the original py2 releases, but fails in the py3 releases with messages like ImportError: No module named '_curses' or ImportError: Module '_curses' is in the "excludes" list, depending on the version. Bundling curses without _curses.pyd leads to an ImportError when attempting to use it.
I was able to bundle it successfully by dropping the _curses line from the exclude list here:
I'm not sure if this excludes list serves to shorten the list of missing modules printed at the end (in which case dropping the line is probably fine), or if there's more to it (and maybe the line is conditionally dropped only if windows-curses is installed).
For reference, here's the windows-curses project: https://github.com/zephyrproject-rtos/windows-curses
This used to work with the original py2 releases, but fails in the py3 releases with messages like
ImportError: No module named '_curses'orImportError: Module '_curses' is in the "excludes" list, depending on the version. Bundlingcurseswithout_curses.pydleads to an ImportError when attempting to use it.I was able to bundle it successfully by dropping the
_cursesline from the exclude list here:py2exe/py2exe/hooks.py
Line 17 in b183301
I'm not sure if this excludes list serves to shorten the list of missing modules printed at the end (in which case dropping the line is probably fine), or if there's more to it (and maybe the line is conditionally dropped only if
windows-cursesis installed).For reference, here's the windows-curses project: https://github.com/zephyrproject-rtos/windows-curses