Conversation
for more information, see https://pre-commit.ci
pycryptodomex was added in #2966, but it had an invalid recipe name meta.yml (not meta.yaml) so our build system didn't build that package. I found that in #3006, and I also found that it is not building well, so I disabled it then. So, in other words, pycryptodomex never worked in Pyodide. I would like to remove it from the changelog and the repository for now, so that we don't add it to our next stable release accidentally. Perhaps someone interested can re-add this package.
|
No, I don't have any knowledge about |
|
@ryanking13 I am interested in packaging pycryptodomex myself, but I do not really understand how the development process should look like. I have meta.yaml and test file, I built it, and according to documentation, I am now supposed to test this package using pyodide REPL, but there are no detailed information about how to do this. Maybe this is something obvious, but I am not that proficient in python syntax, and simple import do not work, help("modules") do not return the module i just built. |
|
I am sorry if our documentation isn't detailed enough, and we're very happy that you're interested in building packages! Pyodide's package building system is actually quite complicated to explain because it's a mix of the WASM compilation toolchain and the complex Python packaging system, and because different Python packages have different build methods (which is an old problem with Python), so you often need to understand how the package you're building is built rather than how Pyodide itself is built.
Looking at the other issue you opened (#4159), it looks like the build failed, and it's actually not uncommon for packages with complex native dependencies to fail to cross-compile, so we'll need to analyze why the build failed. If you can't analyze the reason for the failure yourself, the best thing to do is to post a draft PR with an updated meta.yaml file so that maintainers can see the full build log. It's hard to tell what we're dealing with by looking at the fragmentary errors in the issue, so it would be nice to see the full build log so that we can analyze it together. On a side note, if your reason for wanting to build pycryptodomex is to use
|
|
fyi, ffmpeg is available as a wasm library: https://github.com/ffmpegwasm/ffmpeg.wasm (though there may be limitations) |
Description
Add cryptographic package
pycryptodomexChecklists