-
Hello, I am trying to build my simple pyo3 package for pyodide.
So, here is the question: Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
You don't need to rebuild Pyodide. You will need to apply this patch to your copy of emscripten: Also, you need to build the rust standard library unless your package has export RUSTFLAGS="\
-C relocation-model=pic\
-C target-feature=+mutable-globals\
-C link-arg=-s\
-C link-arg=SIDE_MODULE=1\
" You should imitate the build script here: |
Beta Was this translation helpful? Give feedback.
You don't need to rebuild Pyodide. You will need to apply this patch to your copy of emscripten:
https://github.com/pyodide/pyodide/pull/2081/files#diff-4d3dbac9b16778c2f3c4e57a847de655a6d51b8b92d89d3ba926148a79dfeddb
Also, you need to build the rust standard library unless your package has
#[no-std]
. You also need:You should imitate the build script here:
https://github.com/hoodmane/pyodide/blob/pyo3/packages/pyo3_samples/meta.yaml