Camilla Montonen added the comment: This is still an issue in Python 3.4.3, but I believe the relevant documentation has been changed already to alert users to the fact that the class name and the command name should be the same.
Quoting from: https://docs.python.org/3/distutils/apiref.html#module-distutils.command Copy this file to a new module with the same name as the new command you’re implementing. This module should implement a class with the same name as the module (and the command). So, for instance, to create the command peel_banana (so that users can run setup.py peel_banana), you’d copy command_template to distutils/command/peel_banana.py, then edit it so that it’s implementing the class peel_banana, a subclass of distutils.cmd.Command. Following this documentation, a user would not implement a custom command class called 'TestClass' with a command called 'test'. ---------- nosy: +Winterflower _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6860> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com