I'm abusing distutils to compile an extension module for Python, but rather than using the Python C API I'm using ctypes to talk to the resulting shared library.
This works fine in Linux because it automatically exports all symbols in a shared library, but in Windows distutils provides a .def
to export only the Python module init function.
How do I extend distutils to provide my own .def
on Windows so it will export the symbols I need?