Message92405
The attached setup.py file defines a custom command named "test", which
is implemented in a class named "TestClass". Try to run both of the
following:
1) ./setup.py test -h
2) ./setup.py --help-commands
In case 1, Distutils will use the class name to print the help output.
In case 2, it will use the command name. This behaviour is inconsistent.
As a developer, if I want to get the output right in both cases, I am
forced to use the same name both for the command class and the command
name (a string in a dictionary).
I propose that Distutils always use the command name. Besides fixing the
inconsistency, this solution gives the freedom to choose class names
back to the developer.
I have tested this behaviour on Mac OS X 10.5, both with the
system-provided Python 2.5 and custom-installed versions of Python 2.6
and 3.1. |
|
Date |
User |
Action |
Args |
2009-09-08 01:08:34 | herzbube | set | recipients:
+ herzbube, tarek |
2009-09-08 01:08:34 | herzbube | set | messageid: <1252372114.27.0.565813299947.issue6860@psf.upfronthosting.co.za> |
2009-09-08 01:08:32 | herzbube | link | issue6860 messages |
2009-09-08 01:08:30 | herzbube | create | |
|