Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC 1: micropip.freeze() → pyodide-lock.json #8

Open
rth opened this issue Jul 4, 2023 · 0 comments
Open

RFC 1: micropip.freeze() → pyodide-lock.json #8

rth opened this issue Jul 4, 2023 · 0 comments

Comments

@rth
Copy link
Member

rth commented Jul 4, 2023

First very simple option for creating a pyodide-lock.json mixing Pyodide packages and PyPI packages consists of,

  1. install them with micropip,
  2. call micropip.freeze() to get the updated `pyodide-lock.json (cf Download pyodide-lock.json with results of micropip.freeze()  micropip#68).
  3. and then to make install on import work, parse the added wheel files and add the expected import names via Move parse_top_level_import_name from Pyodide build #7

It can be done directly in the browser, but it's probably not optimal. The other solution is to do it in node (but this means a dependency on node).

The ideal case could be to run it native Python with micropip installed. I think it might be possible if we use the dependency resolution part but not the install part of micropip, but someone would need to try.

Alternative proposals: #9 #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant