caketop / python-starlark-go

🐍 Python bindings for starlark-go 🐍
https://python-starlark-go.readthedocs.io/
Apache License 2.0
20 stars 7 forks source link

Try again with Windows #141

Open jordemort opened 1 year ago

AlmogBaku commented 1 month ago

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...