diff options
| author | Barry Warsaw | 2008-04-26 01:39:14 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-04-26 01:39:14 -0400 |
| commit | fbd382c07dc621bda9b724675b1df75746d07179 (patch) | |
| tree | 28f18a653afc000b4b7595e7793e2b76c833ab9e /setup.py | |
| parent | 574405b3aa5e3afa475c9e2904a27be40c0bbc83 (diff) | |
| parent | 2547651d03cfdf23632ded85c05bb02161688d45 (diff) | |
| download | mailman-fbd382c07dc621bda9b724675b1df75746d07179.tar.gz mailman-fbd382c07dc621bda9b724675b1df75746d07179.tar.zst mailman-fbd382c07dc621bda9b724675b1df75746d07179.zip | |
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -37,6 +37,7 @@ if sys.hexversion < 0x20500f0: # properly split out. import os +import mailman.commands import mailman.messages start_dir = os.path.dirname(mailman.messages.__file__) @@ -57,9 +58,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.commands.$command') +commands = set( + template.substitute(command=command) + for command in mailman.commands.__all__ ) @@ -84,6 +91,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', |
