See the [debian bug report](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083578) and the notes in https://setuptools.pypa.io/en/latest/pkg_resources.html. This should be replaced by `importlib` tools