summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-18 22:55:07 -0400
committerBarry Warsaw2007-07-18 22:55:07 -0400
commit6b9a4a8a6549558127dd7b8bbb1fd4362716732c (patch)
tree9b5add16e1e6b0597c2e870ec97a2101b4c4441d /setup.py
parent50d84950d1060129da8eb3c3c490a7395b0837e5 (diff)
downloadmailman-6b9a4a8a6549558127dd7b8bbb1fd4362716732c.tar.gz
mailman-6b9a4a8a6549558127dd7b8bbb1fd4362716732c.tar.zst
mailman-6b9a4a8a6549558127dd7b8bbb1fd4362716732c.zip
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 129d205a8..a5275da85 100644
--- a/setup.py
+++ b/setup.py
@@ -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('_')
)