From f6c9dc44b719e227742f5f1fb8e3acfa279a496d Mon Sep 17 00:00:00 2001 From: Lev Abalkin Date: Fri, 23 Jan 2015 19:52:20 -0500 Subject: [PATCH] Closes #7558: Added pygments entry points for ipython lexers. --- setup.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 31c473057..ebee37b28 100755 --- a/setup.py +++ b/setup.py @@ -286,7 +286,14 @@ if 'setuptools' in sys.modules: setup_args['cmdclass']['bdist_wheel'] = css_js_prerelease(get_bdist_wheel()) setuptools_extra_args['zip_safe'] = False - setuptools_extra_args['entry_points'] = {'console_scripts':find_entry_points()} + setuptools_extra_args['entry_points'] = { + 'console_scripts': find_entry_points(), + 'pygments.lexers': [ + 'ipythonconsole = IPython.nbconvert.utils.lexers:IPythonConsoleLexer', + 'ipython = IPython.nbconvert.utils.lexers:IPythonLexer', + 'ipython3 = IPython.nbconvert.utils.lexers:IPython3Lexer', + ], + } setup_args['extras_require'] = extras_require requires = setup_args['install_requires'] = install_requires