Skip to content

Python: Set up FFI before taking snapshot #4015

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

hoodmane
Copy link
Contributor

No description provided.

@hoodmane hoodmane force-pushed the hoodmane/finalize-bootstrap-earlier branch 12 times, most recently from 3cc391f to 84048f8 Compare April 28, 2025 21:08
@hoodmane hoodmane marked this pull request as ready for review April 28, 2025 21:08
@hoodmane hoodmane requested review from a team as code owners April 28, 2025 21:08
@hoodmane hoodmane force-pushed the hoodmane/finalize-bootstrap-earlier branch 2 times, most recently from 7e24e7c to db6fb30 Compare April 29, 2025 01:42
Copy link
Contributor

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions but overall LGTM

@hoodmane hoodmane force-pushed the hoodmane/finalize-bootstrap-earlier branch 2 times, most recently from 8a6f736 to d37b057 Compare April 29, 2025 18:18
In order to allow our memory snapshots to include packages that try to
specifically support Pyodide and use the Pyodide ffi, or the transitive
dependencies of such packages, we need to set up the ffi before we take
the snapshot. Such packages include basically anything that makes requests,
like urllib3, aiohttp, and httpx.

Most of the work is actually handled by Pyodide upstream.
@hoodmane hoodmane force-pushed the hoodmane/finalize-bootstrap-earlier branch from d37b057 to 2d94bb4 Compare April 29, 2025 18:19
@hoodmane hoodmane merged commit b6b9c45 into main Apr 29, 2025
18 of 23 checks passed
@hoodmane hoodmane deleted the hoodmane/finalize-bootstrap-earlier branch April 29, 2025 20:28
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

Successfully merging this pull request may close these issues.

2 participants