Merge pull request #54 from asmeurer/console_scripts
Install scripts pudb (or pudb3 for Python 3) with setup.py
This commit is contained in:
commit
534888316e
12
setup.py
12
setup.py
@ -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': []},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user