Merge pull request #4347 from takluyver/drop-pycolor

Remove pycolor script

We install a script to syntax highlight Python code in the terminal. This is quite obsolete, though, since the pygmentize command from Pygments offers the same functionality in a much more flexible way (more languages, more styles, other output formats).

This removes the wrapper script, but all the functionality is still there if you use python -m IPython.utils.PyColorize.
pull/37/head
Min RK 13 years ago
commit a01f72e07e

@ -185,10 +185,6 @@ if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):
('docs/man/irunner.1.gz',
['docs/man/irunner.1'],
'cd docs/man && gzip -9c irunner.1 > irunner.1.gz'),
('docs/man/pycolor.1.gz',
['docs/man/pycolor.1'],
'cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz'),
]

@ -319,7 +319,6 @@ def find_scripts(entry_points=False, suffix=''):
if entry_points:
console_scripts = [s % suffix for s in [
'ipython%s = IPython:start_ipython',
'pycolor%s = IPython.utils.PyColorize:main',
'ipcontroller%s = IPython.parallel.apps.ipcontrollerapp:launch_new_instance',
'ipengine%s = IPython.parallel.apps.ipengineapp:launch_new_instance',
'iplogger%s = IPython.parallel.apps.iploggerapp:launch_new_instance',
@ -338,7 +337,6 @@ def find_scripts(entry_points=False, suffix=''):
pjoin(parallel_scripts, 'ipcluster'),
pjoin(parallel_scripts, 'iplogger'),
pjoin(main_scripts, 'ipython'),
pjoin(main_scripts, 'pycolor'),
pjoin(main_scripts, 'irunner'),
pjoin(main_scripts, 'iptest')
]

Loading…
Cancel
Save