~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Barry Warsaw
  • Date: 2008-04-26 05:39:14 UTC
  • mfrom: (6631.1.1 3.0)
  • Revision ID: barry@list.org-20080426053914-p8npnxmqvkkqjscf
Update and reorganize the command queue runner so that it works with the
plugin architecture.  Update the Echo command to the new architecture.  Add a
doctest of course.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
# properly split out.
38
38
 
39
39
import os
 
40
import mailman.commands
40
41
import mailman.messages
41
42
 
42
43
start_dir = os.path.dirname(mailman.messages.__file__)
57
58
# XXX The 'bin/' prefix here should be configurable.
58
59
template = Template('bin/$script = mailman.bin.$script:main')
59
60
scripts = set(
60
 
    template.substitute(script=os.path.splitext(script)[0])
 
61
    template.substitute(script=script)
61
62
    for script in mailman.bin.__all__
62
 
    if not script.startswith('_')
 
63
    )
 
64
 
 
65
# Default email commands
 
66
template = Template('$command = mailman.commands.$command')
 
67
commands = set(
 
68
    template.substitute(command=command)
 
69
    for command in mailman.commands.__all__
63
70
    )
64
71
 
65
72
 
84
91
        'console_scripts': list(scripts),
85
92
        # Entry point for plugging in different database backends.
86
93
        'mailman.archiver'  : 'default = mailman.app.archiving:Pipermail',
 
94
        'mailman.commands'  : list(commands),
87
95
        'mailman.database'  : 'stock = mailman.database:StockDatabase',
88
96
        'mailman.mta'       : 'stock = mailman.MTA:Manual',
89
97
        'mailman.styles'    : 'default = mailman.app.styles:DefaultStyle',