# if pkg_resources is not available or no usable egg-info was found
# (see #230), we resort to looking up the builtin extractors
# directly
- builtin = {'ignore': extract_nothing, 'python': extract_python}
+ builtin = {
+ 'ignore': extract_nothing,
+ 'python': extract_python,
+ 'javascript': extract_javascript
+ }
func = builtin.get(method)
if func is None:
raise ValueError('Unknown extraction method %r' % method)
zip_safe=False,
+ # Note when adding extractors: builtin extractors we also want to
+ # work if packages are not installed to simplify testing. If you
+ # add an extractor here also manually add it to the "extract"
+ # function in babel.messages.extract.
entry_points="""
[console_scripts]
pybabel = babel.messages.frontend:main