From: Zooko O'Whielacronx Date: Thu, 23 Jul 2009 15:04:07 +0000 (-0700) Subject: setup: mark stdeb as setup_requires if "sdist_dsc" is in sys.argv X-Git-Tag: allmydata-tahoe-1.5.0~13 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/running.html?a=commitdiff_plain;h=d0998712bb18a99645ee37dfee09ea72521c8250;p=tahoe-lafs%2Ftahoe-lafs.git setup: mark stdeb as setup_requires if "sdist_dsc" is in sys.argv --- diff --git a/setup.py b/setup.py index 6e24acd3..99c491d1 100644 --- a/setup.py +++ b/setup.py @@ -127,6 +127,10 @@ setup_requires.extend(['setuptools_trial >= 0.5']) # to setup_requires. http://pypi.python.org/pypi/setuptools_darcs setup_requires.append('setuptools_darcs >= 1.1.0') +# stdeb is required to produce Debian files with the "sdist_dsc" command. +if "sdist_dsc" in sys.argv: + setup_requires.append('stdeb >= 0.3') + class ShowSupportLib(Command): user_options = [] def initialize_options(self):