From d549aad33984703f85fc6d331014502a519e0932 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Tue, 20 Jan 2009 12:42:29 -0700
Subject: [PATCH] setup: require darcsver always, and not just when we see the
 string "darcsver" in sys.argv, because the new aliases hack means that the
 string might not appear in sys.argv

---
 setup.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/setup.py b/setup.py
index 4c194301..842e65fd 100644
--- a/setup.py
+++ b/setup.py
@@ -144,12 +144,10 @@ setup_requires = []
 # setuptools to satisfy that requirement before Nevow's setup.py tried to "import twisted".
 setup_requires.extend(['Twisted >= 2.4.0', 'setuptools_trial'])
 
-# darcsver is needed only if you want "./setup.py darcsver" to write a new
-# version stamp in src/allmydata/_version.py, with a version number derived from
-# darcs history.
+# darcsver is needed if you want "./setup.py darcsver" to write a new version stamp in
+# src/allmydata/_version.py, with a version number derived from darcs history.
 # http://pypi.python.org/pypi/darcsver
-if 'darcsver' in sys.argv[1:]:
-    setup_requires.append('darcsver >= 1.1.5')
+setup_requires.append('darcsver >= 1.1.5')
 
 # setuptools_trial is needed only if you want "./setup.py trial" to execute the tests.
 # http://pypi.python.org/pypi/setuptools_trial
-- 
2.45.2