]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: mark stdeb as setup_requires if "sdist_dsc" is in sys.argv
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 23 Jul 2009 15:04:07 +0000 (08:04 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 23 Jul 2009 15:04:07 +0000 (08:04 -0700)
setup.py

index 6e24acd34326a53c90ec59a3900fbc1e56b73d41..99c491d164257f5a5ac60c4436c0df532af36d5f 100644 (file)
--- 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):