PyScript: How to import local libraries?

After a bit more digging I found a workaround mentioned in this forum. There is also an issue submitted on github about this.

The workaround suggested is to make a prebuilt wheel and include it like a normal module.

<py-env>
- ./pyecore.whl
</py-env>