How to embed python runtime into my app #3805
-
I need a custom python runtime without stdlib, I saw an example of this: https://github.com/RustPython/RustPython/blob/main/examples/hello_embed.rs but the dependence How can I do the embed today? I also don't need Lines 205 to 215 in 60598b6 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Try to use latest main branch instead of published version. Even without stdlib, you have to embed a few python files. Skipping stdlib is possible but builtin-modules are necessary. https://docs.python.org/3/library/sys.html#sys.builtin_module_names |
Beta Was this translation helpful? Give feedback.
Try to use latest main branch instead of published version.
Even without stdlib, you have to embed a few python files. Skipping stdlib is possible but builtin-modules are necessary. https://docs.python.org/3/library/sys.html#sys.builtin_module_names