See the discussion on #2174. An uncaught C++ error on main causes an error like:
```
TypeError: Cannot create property 'pyodide_fatal_error' on number '28811048'
```
With this the same error looks like:
```
Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.
The cause of the fatal error was:
CppException: Unable to cast Python instance to C++ type (compile in debug mode for details)
```
Support for C++ exceptions in packages. See the discussion on #2174. An uncaught C++ error on main causes an error like:
```
TypeError: Cannot create property 'pyodide_fatal_error' on number '28811048'
```
With this the same error looks like:
```
Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.
The cause of the fatal error was:
CppException: Unable to cast Python instance to C++ type (compile in debug mode for details)
```
package:
  name: yt
  version: 3.6.1

source:
  url: https://files.pythonhosted.org/packages/1e/ce/e75e41f077e330f25d912eda4a1ba124e6b5f896f457ec5ca4e8c89b97c2/yt-3.6.1.tar.gz
  sha256: be454f9d05dcbe0623328b4df43a1bfd1f0925e516be97399710452931a19bb0

  patches:
    - patches/skip-openmp.patch

requirements:
  run:
    - numpy
    - matplotlib
    - sympy
    - setuptools

build:
  # The test module is imported from the top level `__init__.py`
  # so it cannot be unvendored
  unvendor-tests: false

test:
  imports:
    - yt

package:
  name: yt
  version: 3.6.1

source:
  url: https://files.pythonhosted.org/packages/1e/ce/e75e41f077e330f25d912eda4a1ba124e6b5f896f457ec5ca4e8c89b97c2/yt-3.6.1.tar.gz
  sha256: be454f9d05dcbe0623328b4df43a1bfd1f0925e516be97399710452931a19bb0

  patches:
    - patches/skip-openmp.patch

requirements:
  run:
    - numpy
    - matplotlib
    - sympy
    - setuptools

build:
  # The test module is imported from the top level `__init__.py`
  # so it cannot be unvendored
  unvendor-tests: false

test:
  imports:
    - yt
