[issue42321] Limitations of building a static python library on Windows (MSVC)

2020-11-12 Thread Steve Dower
Steve Dower added the comment: > Does a statically built Windows python.exe support C extension modules at all? I've given this some thought in the past, and I suspect the answer is "no" unless you were to also statically link the extension modules into the same executable (which will likely

[issue42321] Limitations of building a static python library on Windows (MSVC)

2020-11-11 Thread Maarten
New submission from Maarten : `PCbuild/readme.txt` contains a little paragraph about how to build a static python library. The resulting static `python.lib` library contains all python C API functions. Windows DLL's don't allow missing symbols, so C extensions modules must link with a library