You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
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 modusoperandi 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.
Activity
sbinet commentedon 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 thegomodules linked in, and replace your standardpythonexecutable with that binary (my-python.)ie: something like the
cmd/go-pythonexecutable where thegomodules have been imported and registered/exposed with thePyModule_xyzfunctions.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
gomobilewill provide for java/android and objc/ios users.let me know whether that helps or not.
-s