[Distutils] Interrogate distribution for an entry point command path
Paul Moore
p.f.moore at gmail.com
Sun Oct 16 03:38:42 EDT 2016
On 16 October 2016 at 00:38, Ben Finney <ben+python at benfinney.id.au> wrote:
>> This avoids the need to work out where the 'foo' script has been
>> installed to.
>
> So, I'm still wanting to know from Setuptools itself at run time, what
> filesystem path Setuptools installed the command to.
Setuptools doesn't install the command, it just records entry point
metadata. The installer (pip, presumably?) creates the wrapper. The
name of the wrapper file that gets installed is technically recorded
in the installed files metadata (for use by pip uninstall) but there's
no information recording the link between the entry point and the
file.
Paul
More information about the Distutils-SIG
mailing list