[Distutils] using sub_commands in distutils

Manlio Perillo manlio.perillo at gmail.com
Fri May 14 17:08:44 CEST 2010


In a package, I have gettext catalog messages, and I want to compile
them when the package is build.

I looked at the Mercurial setup.py script, and what it does is:

from distutils.command.build import build
build.sub_commands.insert(0, ('build_mo', None))

Is this the correct way?

Thanks  Manlio

More information about the Distutils-SIG mailing list