This is all copy-paste from formerly `vispy/__init__.py`.