[Distutils] converting a distutil command to setuptools

Phillip J. Eby pje at telecommunity.com
Sat Jun 30 16:51:50 CEST 2007

At 04:47 AM 6/30/2007 -0400, Jorge Vargas wrote:
>I'm porting a distutils package to setuptools they have a Command that
>takes the po files and compiles them and then they are feeding a cmd
>Class to distutils, I read in the docs that the way of doing this in
>setuptools is with an entry point and that the entry point should be
>provided by a preinstalled package,

That's if you want the command to be globally available.  If you only 
need to have the command for one project, the one that's being set 
up, then the 'cmdclass' method still works just fine.

>Also is there any setuptools enhancement to Extension, to handle C++
>compilation and dependencies check?

setuptools.extension.Extension only adds Pyrex support; other than 
that, it's the same as the distutils.

More information about the Distutils-SIG mailing list