awpy icon indicating copy to clipboard operation
awpy copied to clipboard

DRAFT: Trying stuff out for shared library for go code.

Open JanEricNitschke opened this issue 1 year ago • 2 comments

I managed to get gopy running locally for me on windows so that i can create a library and it works. But there is still a bunch of stuff i am not sure about.

JanEricNitschke avatar May 01 '23 18:05 JanEricNitschke

If i just push the compiled library from my windows machine the windows workflows work. Makes sense.

But i dont know how to solve this when we want to push this via pip. Because to compile it from source go needs to be installed which kinda defeats the whole purpose. And i dont think there is a single way we can precompile this that works on all machines.

Maybe we have to include library for both windows and linux (and mac?)?

https://github.com/raptor-ml/raptor/blob/c8c6602cbb9d8ffd32b2e9942518626186a08c0e/labsdk/setup.py

JanEricNitschke avatar May 01 '23 19:05 JanEricNitschke

Adding more resources for when i can get back to this: https://last9.io/blog/using-golang-package-in-python-using-gopy/

JanEricNitschke avatar May 22 '23 04:05 JanEricNitschke