For reference, cross-compilation on Windows basically just requires:
- choosing the right compiler (typically from the same install)
- having the right
libsfolder (import libraries) - knowing the right .pyd tag
The rest is easy, and I’d be quite willing to write a backend helper module to get the import libraries on demand. Unfortunately, knowing the right .pyd tag is impossible without just hardcoding it for each possibility. And even if you have the right libs, the build backends don’t all allow specifying where to look (without modifying the package itself). I think this can all be fixed with sysconfig overrides though.