From 019ca56048973d035e337cedaee73a7362941886 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8a8ee44..bda03ff 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,9 @@ -from distutils.core import setup +from setuptools import setup import codecs with codecs.open('README.rst', encoding='utf-8') as file: long_description = file.read() - setup( name='stdeb', # Keep version in sync with stdeb/__init__.py and install section @@ -17,6 +16,8 @@ license='MIT', url='http://github.com/astraw/stdeb', packages=['stdeb', 'stdeb.command'], + entry_points={'distutils.commands': ["%(cmd)s = stdeb.command.%(cmd)s:%(cmd)s" % {'cmd': x} + for x in ('bdist_deb', 'debianize', 'install_deb', 'sdist_dsc', )], }, scripts=[ 'scripts/py2dsc', 'scripts/py2dsc-deb',