From a8b417f4933d0d1800cd3c03573ae2feaf79b8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henning=20Schr=C3=B6der?= Date: Fri, 5 Oct 2018 17:45:32 +0200 Subject: [PATCH] switch from distutils to setuptools and create entry point --- __init__.py | 2 -- setup.py | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 __init__.py diff --git a/__init__.py b/__init__.py deleted file mode 100644 index b91a5bf..0000000 --- a/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from .pydump import * -from .pydump import __version__ diff --git a/setup.py b/setup.py index 629e7c5..de59aeb 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from distutils.core import setup +from setuptools import setup DESCRIPTION = """ Pydump allows post-mortem debugging for Python programs. @@ -28,8 +28,10 @@ license='MIT', author_email='eli.finer@gmail.com', url='https://github.com/gooli/pydump', - package_dir={'pydump':'.'}, - packages=['pydump'], + py_modules=['pydump'], + entry_points={ + 'console_scripts': ['pydump = pydump:main', ], + }, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console',