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)
```
#!/usr/bin/env python

from setuptools import find_packages, setup


setup(
    name="micropip",
    version="0.1",
    description="A small version of pip for running in pyodide",
    author="Michael Droettboom",
    author_email="mdroettboom@mozilla.com",
    url="https://github.com/pyodide/pyodide",
    packages=find_packages(
        where=".",
    ),
)

#!/usr/bin/env python

from setuptools import find_packages, setup


setup(
    name="micropip",
    version="0.1",
    description="A small version of pip for running in pyodide",
    author="Michael Droettboom",
    author_email="mdroettboom@mozilla.com",
    url="https://github.com/pyodide/pyodide",
    packages=find_packages(
        where=".",
    ),
)
