Here the idea is to use some standard Python dependency solver for creating the pyodide-lock.json from multiple sources (Pyodide distribution, PyPI, third party sources etc).
For instance it could look as follows,
- Expose a Simple JSON API for the Pyodide distribution (so that Python package managers could understand it). This should already be done, but I can't find where (cc @ryanking13 )
- Define a list of indexes with a priority . Same idea as
--extra-index-url in pip
- Run a standard Pythopn dependency solver on a list of input requirements, specifying
emscripten*_wasm32 as the platform (or whatever it is now). Here the best tool remains to be determined,
- Reformat the results in the
pyodide-lock.json format (by taking information either from the original pyodide-lock.json)
Alternative proposals in #8 #9
Here the idea is to use some standard Python dependency solver for creating the
pyodide-lock.jsonfrom multiple sources (Pyodide distribution, PyPI, third party sources etc).For instance it could look as follows,
--extra-index-urlin pipemscripten*_wasm32as the platform (or whatever it is now). Here the best tool remains to be determined,pyodide-lock.jsonformat (by taking information either from the originalpyodide-lock.json)Alternative proposals in #8 #9