[Distutils] announce not working for me

Kevin Dangoor dangoor at gmail.com
Wed Aug 31 21:09:22 CEST 2005

I'm doing something wrong, and it's probably very obvious...

from distutils.core import setup

from distutils.core import Command

class FooBar(Command):
    description = "foo. no! Bar!"
    user_options = []
    def initialize_options(self):

    def finalize_options(self):

    def run(self):
        print "am I here?"
        self.announce("Run, I say!")

    cmdclass = { "foobar" : FooBar }

Running "python setup.py foobar" prints the "am I here?" line, but not
the "Run, I say!" line. This is true even with the -v flag.

*Should* this work?


More information about the Distutils-SIG mailing list