summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-20 16:04:28 -0400
committerBarry Warsaw2007-07-20 16:04:28 -0400
commitd3191e2e814369ee81a4bdb5ef4cf90fdc12b7ef (patch)
tree9fad13b63380bd50721c6fe8f41eb36691ca00b9 /setup.py
parent6b9a4a8a6549558127dd7b8bbb1fd4362716732c (diff)
downloadmailman-d3191e2e814369ee81a4bdb5ef4cf90fdc12b7ef.tar.gz
mailman-d3191e2e814369ee81a4bdb5ef4cf90fdc12b7ef.tar.zst
mailman-d3191e2e814369ee81a4bdb5ef4cf90fdc12b7ef.zip
Added a plugin so setuptools groks the Bazaar revision control system.
Added a MANIFEST.in so the generated .mo files are included.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index a5275da85..8ba185d09 100644
--- a/setup.py
+++ b/setup.py
@@ -35,8 +35,10 @@ if sys.hexversion < 0x20500f0:
# Ensure that all the .mo files are generated from the corresponding .po file.
# This procedure needs to be made sane, probably when the language packs are
# properly split out.
+
import os
import Mailman.messages
+
start_dir = os.path.dirname(Mailman.messages.__file__)
for dirpath, dirnames, filenames in os.walk(start_dir):
for filename in filenames:
@@ -78,9 +80,19 @@ Any other spelling is incorrect.""",
keywords = 'email',
packages = find_packages(),
include_package_data = True,
+ # This doesn't work to include the generated .mo files because they are
+ # neither maintained under revision control, nor do they live in a Python
+ # package directory.
+## package_data = {
+## # Include .mo generated files
+## 'Mailman/messages': ['*.mo'],
+## },
# Executable scripts
entry_points = {
'console_scripts': list(scripts),
+ 'setuptools.file_finders': [
+ 'bzr = setupbzr:find_files_for_bzr',
+ ],
},
# Third-party requirements.
install_requires = [