

p圓9\Ĭopy Modules\_cursesmodule.c from the CPython source code to p圓9\_cursesmodule.cĪpply the PDCurses compatibility patch from this commit and the resizing hack from this commit to the new p圓9\_cursesmodule.c.Ĭopy Modules\_curses_panel.c, Modules\clinic\_cursesmodule.c.h, and Modules\clinic\_curses_panel.c.h from the CPython sources to p圓9\_curses_panel.c, p圓9\clinic\_cursesmodule.c.h and p圓9\clinic\_curses_panel.c.h, respectively Adding support for a new Python versionĬreate a new directory for the Python version, e.g. Pip/PyPI will look at the wheel metadata and automatically install the right Once the wheels are built, follow the instructions Uploading to PyPIĭon't forget to bump the version number in setup.py before building new Of the resulting wheels seem to be forwards- and backwards-compatible. This building scheme above should be the safest one to use. Build instructionsĬlone the repository with the following command: Remove UTF8=y from the nmake line in build-wheels.bat to use theĭefault system encoding instead. The wheels are built with wide character support and force the encoding to

That provides the _curses module on Windows and allows the standard curses The patched _cursesmodule.c is linked against PDCurses to produce a wheel _cursesmodule.c to make it compatible with Windows and theĭefines HAVE_* macros for features available in PDCurses and makes some minor The wheels provided here are based on patches from Is provided by Modules/_cursesmodule.c in the CPython source code. Trying to import curses gives an import error for _curses, which The curses module is in the Python standard library, but is not available on

Note that this hack is not in Gohlke's wheels. The description on PyPI has a longer explanation. Starting with version 2.0, these wheels include a hack to make resizing workįor Python applications that haven't been specifically adapted for PDCurses.
