I basically forced compilation with MinGW's gcc, then did bunch of hacky configurations to fix it.
TBH, I don't remember half of it, and not a regular user... but this can be a good reference :)
Notice that I used github.com/go-python/gopy for automatically generate the bindings instead of elegantly writing them as you did...
Compiling windows is indeed a nightmare. this is how I previously solved it with a project of mine: https://github.com/raptor-ml/raptor/blob/c8c6602cbb9d8ffd32b2e9942518626186a08c0e/.github/workflows/labsdk-release.yaml
https://github.com/raptor-ml/raptor/blob/c8c6602cbb9d8ffd32b2e9942518626186a08c0e/labsdk/setup.py
I basically forced compilation with MinGW's gcc, then did bunch of hacky configurations to fix it. TBH, I don't remember half of it, and not a regular user... but this can be a good reference :)
Notice that I used github.com/go-python/gopy for automatically generate the bindings instead of elegantly writing them as you did...