summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-04-22 22:34:45 -0400
committerBarry Warsaw2008-04-22 22:34:45 -0400
commit2547651d03cfdf23632ded85c05bb02161688d45 (patch)
treef17050819d6cf9db75b779eb1ee5603f9d40515f /setup.py
parent574405b3aa5e3afa475c9e2904a27be40c0bbc83 (diff)
downloadmailman-2547651d03cfdf23632ded85c05bb02161688d45.tar.gz
mailman-2547651d03cfdf23632ded85c05bb02161688d45.tar.zst
mailman-2547651d03cfdf23632ded85c05bb02161688d45.zip
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 38e647259..ad8c4f3ac 100644
--- a/setup.py
+++ b/setup.py
@@ -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',