From a66485ab59f5e9c4785e904c5741fa782c0e1d13 Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Wed, 17 Jun 2009 23:10:28 +0530
Subject: [PATCH] setup: add setup_requires += stdeb if "sdist_dsc" appears in
 sys.argv

Ignore-this: 897843b0bd1f899f416aef1bdd1caa0c

darcs-hash:6998c04be1a7fb934f5b51363109f4601a2b5b73
---
 zfec/setup.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/zfec/setup.py b/zfec/setup.py
index ef123dc..a2f64b3 100755
--- a/zfec/setup.py
+++ b/zfec/setup.py
@@ -123,6 +123,10 @@ setup_requires.append('darcsver >= 1.2.0')
 # http://pypi.python.org/pypi/setuptools_darcs
 setup_requires.append('setuptools_darcs >= 1.1.0')
 
+# stdeb is required to build Debian dsc files.
+if "sdist_dsc" in sys.argv:
+    setup_requires.append('stdeb')
+
 data_fnames=[ 'COPYING.GPL', 'changelog', 'COPYING.TGPPL.html', 'TODO', 'README.txt' ]
 
 # In case we are building for a .deb with stdeb's sdist_dsc command, we put the
-- 
2.45.2