diff options
| author | Barry Warsaw | 2007-07-18 22:55:07 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-07-18 22:55:07 -0400 |
| commit | 6b9a4a8a6549558127dd7b8bbb1fd4362716732c (patch) | |
| tree | 9b5add16e1e6b0597c2e870ec97a2101b4c4441d /setup.py | |
| parent | 50d84950d1060129da8eb3c3c490a7395b0837e5 (diff) | |
| download | mailman-6b9a4a8a6549558127dd7b8bbb1fd4362716732c.tar.gz mailman-6b9a4a8a6549558127dd7b8bbb1fd4362716732c.tar.zst mailman-6b9a4a8a6549558127dd7b8bbb1fd4362716732c.zip | |
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -20,6 +20,7 @@ ez_setup.use_setuptools() import sys from string import Template +import Mailman.bin from Mailman.Version import VERSION as __version__ from setuptools import setup, find_packages @@ -51,10 +52,11 @@ for dirpath, dirnames, filenames in os.walk(start_dir): -template = Template('$script = Mailman.bin.$script:main') +# 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]) - for script in os.listdir(os.path.join('Mailman', 'bin')) + for script in Mailman.bin.__all__ if not script.startswith('_') ) |
