Merge pull request #54 from asmeurer/console_scripts

Install scripts pudb (or pudb3 for Python 3) with setup.py
This commit is contained in:
Andreas Klöckner 2013-01-29 16:09:59 -08:00
commit 534888316e

View File

@ -7,6 +7,13 @@ use_setuptools()
from setuptools import setup
from pudb import VERSION
import sys
py_version_major = str(sys.version_info[0])
if py_version_major == 3:
PY_VERSION = str(py_version_major)
else:
PY_VERSION = ''
try:
readme = open("README.rst")
long_description = str(readme.read())
@ -44,5 +51,6 @@ setup(name='pudb',
"Topic :: Terminals",
"Topic :: Utilities",
],
packages=["pudb"])
packages=["pudb"],
entry_points={'console_scripts': ['pudb' + PY_VERSION + ' = pudb.run:main'], 'gui_script': []},
)