diff options
author | Julian Berman <Julian+Hg@GrayVines.com> | 2012-10-28 20:48:49 -0400 |
---|---|---|
committer | Julian Berman <Julian+Hg@GrayVines.com> | 2012-10-28 20:48:49 -0400 |
commit | 1395e325c8710e120edc501d964e07fb5421a68e (patch) | |
tree | 74b89c2fff721fa3c230e912d55ce57b0ab46685 | |
parent | e1054fec7ef8969b02094d565eea9a2b1ce727d8 (diff) | |
download | python-coveragepy-1395e325c8710e120edc501d964e07fb5421a68e.tar.gz |
Create coverage3 symlink when installed using Python 3
-rw-r--r-- | setup.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -55,6 +55,10 @@ from distutils.core import Extension # pylint: disable=E0611,F0401 from coverage import __url__, __version__ +scripts = ['coverage = coverage:main'] +if sys.version_info >= (3, 0): + scripts.append('coverage3 = coverage:main') + doclines = (__doc__ % __url__).split('\n') classifier_list = [c for c in classifiers.split("\n") if c] @@ -83,11 +87,7 @@ setup_args = dict( ] }, - entry_points = { - 'console_scripts': [ - 'coverage = coverage:main', - ], - }, + entry_points = {'console_scripts': scripts}, # We need to get HTML assets from our htmlfiles dir. zip_safe = False, |