Use importlib instead of pkg_resources to discover dist
This replaces the external pkg_resources
with the standard library's metadata
module.
We should probably backport this fix to the 2.0 branch, as the pkg_resources
dependency appears to be missing from the declared dependencies, and we just used it with some luck because some other dependency pulled it in.