Problem
Some packages cannot be installed in an emscripten-wasm32 because of underlying dependencies that cannot be installed.
For some of them, we should provide mock packages published on emscripten-forge. But it would make sense to add the ability for the user to mock packages themselves.
Proposed Solution
- for the pre-built env, we can dynamically create a mock-channel containing wanted packages so that micromamba does not complain during the environment solving. This means adding a new option in the addon.
- for dynamically installed packages using mambajs, we can tell mambajs the mocked package is installed and it should not complain upon resolve
Additional context
Pyodide does this https://micropip.pyodide.org/en/latest/project/api.html#micropip.add_mock_package but it's Python specific. Let's not make a Python specific solution here
Problem
Some packages cannot be installed in an
emscripten-wasm32because of underlying dependencies that cannot be installed.For some of them, we should provide mock packages published on
emscripten-forge. But it would make sense to add the ability for the user to mock packages themselves.Proposed Solution
Additional context
Pyodide does this https://micropip.pyodide.org/en/latest/project/api.html#micropip.add_mock_package but it's Python specific. Let's not make a Python specific solution here