[Distutils] whats the best way to depend on tools needed for setup.py/setup metadata

P.J. Eby pje at telecommunity.com
Tue Sep 14 22:00:45 CEST 2010

At 08:53 PM 9/14/2010 +0200, Ronny Pfannschmidt wrote:
>i'd like to support turning my guess version from hg metadata tool into
>a setup dependency and thus kill the need to ship a python file.
>Currently i just import it + call a function,
>but that doesn't exactly work if the module is missing and a dependency.
>Is there any way to turn it into some sort of plugin/extension that
>automatically gets installed/used to get that metadata.

See my answer here:


And Jason's follow-up here:


You may also want to take a look at what hgtools is doing, to get the 
exact code.

More information about the Distutils-SIG mailing list