micropip icon indicating copy to clipboard operation
micropip copied to clipboard

installing wheel fails if shared libraries have common dependencies

Open joemarshall opened this issue 9 months ago • 3 comments

I have multiple cython extensions, all of which use a common library module.

This installs fine with pyodide.loadPackage, but in micropip it doesn't work.

There's an underlying bug in emscripten https://github.com/emscripten-core/emscripten/issues/20203 which is causing this, as if multiple libraries which are imported as local depend on the same common dependencies, the second and following imports don't bring any symbols into the local namespace. Until that fix is in, it would be nice for it to work in micropip the same way it does in pyodide.loadPackage, which is to detect dependency libraries and make them globally imported.

joemarshall avatar Sep 07 '23 21:09 joemarshall