Use setuptools entry-points for finding main() functions
Created by: anjos
As suggested at https://bitbucket.org/ned/coveragepy/issues/409/buildout-doesnt-work-with-version-40-any, it would be more robust to fetch the entry points for programs directly from setuptools.
Ned has passed some code to fetch the entry-point from setuptools:
str(pkg_resources.get_entry_map("coverage")['console_scripts']['coverage'])
Must hook this into other programs as well.