This PR is not ready to be reviewed yet. I am opening a PR for visibility.
This changes how we handle unisolated packages + hostsitepackages directory.
The current mechanism of unisolated packages is as follows:
We have a few number of isolated packages. Numpy and Scipy are the most important ones.
These isolated packages are often used as a build dependency for other packages.
When some packages set these dependencies as build dependencies, we intercept the call of installing the build dependencies and exclude those packages from being installed.
Instead, we pass PYTHONPATH to point to the WASM build of unisolated packages so that these unisolated packages can be used instead of the native packages when building the package.
This PR is not ready to be reviewed yet. I am opening a PR for visibility.
This changes how we handle unisolated packages + hostsitepackages directory.
The current mechanism of unisolated packages is as follows:
However, this mechanism introduced a few issues, such as https://github.com/pyodide/pyodide/pull/5012#discussion_r1720979108.
This PR changes it in the following way: