- Notifications
You must be signed in to change notification settings - Fork1.4k
How to embed python runtime into my app#3805
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
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 in60598b6
|
BetaWas this translation helpful?Give feedback.
All reactions
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
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 |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello there! Would you mind to help me too? I created a new Rust binary project with cargo new and copy pasted the # ...Boilerplate cargo.toml stuff and then[dependencies]rustpython ={git ="http://github.com/rustpython/rustpython.git", features =["freeze-stdlib"]} I believe I'm using the lastest version of this repo, but yet I still get an error where it can't find Is the problem in the way I added rustpython? Any pointers or help is appreciated! Happy Holidays! PS: I typed the url from what I remembered but in reality I copy pasted from the GitHub copy button |
BetaWas this translation helpful?Give feedback.
All reactions
-
Just renaming it should do it I believe: |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1❤️ 1
-
Appreciated!! it worked!! thank you! |
BetaWas this translation helpful?Give feedback.