From c6ed9e0f1ca16affadb39c89dce96a149e4c0549 Mon Sep 17 00:00:00 2001 From: mgallet Date: Sun, 21 Jun 2015 23:31:14 +0200 Subject: [PATCH] Use setuptools and its entry_points option to avoid --command-packages=stdeb.command. However, this requires setuptools (which was removed in 2009). --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d7796f57..fbafcdcf 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup import codecs with codecs.open('README.rst', encoding='utf-8') as file: @@ -14,6 +14,8 @@ long_description=long_description, license='MIT', url='http://github.com/astraw/stdeb', + entry_points={'distutils.commands': ["%(cmd)s = stdeb.command.%(cmd)s:%(cmd)s" % {'cmd': x} + for x in ('bdist_deb', 'debianize', 'install_deb', 'sdist_dsc', )], }, packages=['stdeb','stdeb.command'], scripts=['scripts/py2dsc', 'scripts/py2dsc-deb',