Adding custom python library to pyodide

I am trying to use a wheel package in the browser using pyodide. The wheel package is attached herewith also.

When I run the following command in the browser console, I get an error.
Cmd:
await loadPyodide();
await pyodide.runPythonAsync( import micropip await micropip.install('https://test-bucket-file-parse.s3-ap-southeast-1.amazonaws.com/ICON_PACKAGE-1.0-py3-none-any.whl'))

Error:
OSError: [Errno 29] I/O error

Have you checked the network monitor in the appropriate toolbox? It’s possible loading the file over the internet is failing.

Also note that this might be hard to make compatible with the add-on guidelines: https://extensionworkshop.com/documentation/publish/add-on-policies/#development-practices
you would likely have to bundle all the python wheels with the extension (and possibly provide source code?).

It’s also possible pyodide needs eval, which is not allowed by default in extensions: