From 83540666fe41a2be4e2f6ec2a8b5c040010363d3 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Sat, 5 Sep 2015 18:24:51 -0500 Subject: [PATCH] Add versioned entry point scripts (closes #931) --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 6791e52..735acb2 100755 --- a/setup.py +++ b/setup.py @@ -52,6 +52,8 @@ if sys.version_info[:2] < (2, 7): if os.name == 'nt': install_requires.append('pyreadline==2.0') +ver = sys.version_info[0] + setup( name=PKG, version=__version__, @@ -59,8 +61,11 @@ setup( entry_points={ 'console_scripts': [ 'hy = hy.cmdline:hy_main', + 'hy%d = hy.cmdline:hy_main' % ver, 'hyc = hy.cmdline:hyc_main', + 'hyc%d = hy.cmdline:hyc_main' % ver, 'hy2py = hy.cmdline:hy2py_main', + 'hy2py%d = hy.cmdline:hy2py_main' % ver, ] }, packages=find_packages(exclude=['tests*']),