Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

@JeffSpies JeffSpies commented Jun 29, 2015

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 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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.