Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Deployment docs #24

Open
JeffSpies opened this issue Jun 29, 2015 · 1 comment
Open

Deployment docs #24

JeffSpies opened this issue Jun 29, 2015 · 1 comment

Comments

@JeffSpies
Copy link

Great library! Do you happen to have documentation/suggestions for the optimal way to deploy a library using go-python to users? Thanks!

@sbinet
Copy link
Owner

sbinet commented Jun 29, 2015

ATM, with go-1.4 (and the GC toolchain), the only way is to ship a single binary (say my-python) with all the go modules linked in, and replace your standard python executable with that binary (my-python.)
ie: something like the cmd/go-python executable where the go modules have been imported and registered/exposed with the PyModule_xyz functions.

with (the upcoming) go-1.5 and its c-shared buildmode, it will be possible to have dynamically loadable shared libraries, so a much more convenient modus operandi will be possible.
I am working on this over there:
https://github.com/go-python/gopy-gen

there, you will get a much easier user story (I hope) and one which is much more in line with what gomobile will provide for java/android and objc/ios users.

let me know whether that helps or not.
-s

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants