commit 81d6d5809fc9a2dcc2b0746bda9b0de78494cc81 Author: Isis Lovecruft isis@torproject.org Date: Tue Oct 15 04:51:42 2013 +0000
Refactor message_extractors in setuptools.setup() and add a notetoself.
* CHANGE ``message_extractors`` to use the ``pkgpath`` variable. The less places in the code with arbitrary hardcoded paths which may change at some point, the better.
* ADD an XXX note about the glob pattern ``public/**`` in ``message_extractors``. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py index 73f1be2..b231dbd 100644 --- a/setup.py +++ b/setup.py @@ -280,8 +280,10 @@ setuptools.setup( install_requires=get_requirements(), package_data={'bridgedb': get_data_files(filesonly=True)}, exclude_package_data={'bridgedb': ['*.po', '*.pot']}, - message_extractors = {'lib/bridgedb': [ + message_extractors={pkgpath: [ ('**.py', 'python', None), ('templates/**.html', 'mako', None), ('public/**', 'ignore', None)]}, ) +# XXX I think we don't need the 'public/**' babel.messages.frontend.method_map +# anymore... 2013-10-15 --isis