astral-sh / astral-sh/python-build-standalone
removing PYTHONHOME dependency from a static libpython?
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 314
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 27
Description
Hello, First thank you for a great package. I spent quite a bit of time trial and erroring what python-build-standalone does well.
My question is that I have a simple c program which is essentially the example from the python doc on how to embed libpython.
I've managed to compile a fully static exec. As you've already solved the issue of module importing with PyOxidizer for a python executable, would you have any thoughts or suggestions on the libpython embedded side? I mean beyond the trivial mechanism of storing the files in the exec and using local disk or shm to extract out the files when needed? I do not want to modify
python source if I can help it as that would make any method highly dependent on the specific python version. But perhaps modifying the Python module initialization to load from memory instead of a file is the easiest way forward.
Any feedback would be highly appreciated.
Thank you,
-mp
Contributor guide
Assessment
This issue has not been assessed yet.