diff options
| author | Barry Warsaw | 2008-04-22 22:34:45 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-04-22 22:34:45 -0400 |
| commit | 2547651d03cfdf23632ded85c05bb02161688d45 (patch) | |
| tree | f17050819d6cf9db75b779eb1ee5603f9d40515f /setup.py | |
| parent | 574405b3aa5e3afa475c9e2904a27be40c0bbc83 (diff) | |
| download | mailman-2547651d03cfdf23632ded85c05bb02161688d45.tar.gz mailman-2547651d03cfdf23632ded85c05bb02161688d45.tar.zst mailman-2547651d03cfdf23632ded85c05bb02161688d45.zip | |
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -57,9 +57,15 @@ for dirpath, dirnames, filenames in os.walk(start_dir): # XXX The 'bin/' prefix here should be configurable. template = Template('bin/$script = mailman.bin.$script:main') scripts = set( - template.substitute(script=os.path.splitext(script)[0]) + template.substitute(script=script) for script in mailman.bin.__all__ - if not script.startswith('_') + ) + +# Default email commands +template = Template('$command = mailman.command.$command') +commands = set( + template.substitute(command=command) + for command in mailman.Commands.__all__ ) @@ -84,6 +90,7 @@ Any other spelling is incorrect.""", 'console_scripts': list(scripts), # Entry point for plugging in different database backends. 'mailman.archiver' : 'default = mailman.app.archiving:Pipermail', + 'mailman.commands' : list(commands), 'mailman.database' : 'stock = mailman.database:StockDatabase', 'mailman.mta' : 'stock = mailman.MTA:Manual', 'mailman.styles' : 'default = mailman.app.styles:DefaultStyle', |
