From 31a364e8df343acae7b2a0507396d249e489c32b Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Sat, 25 Oct 2008 06:50:42 -0700
Subject: [PATCH] setup: pretend the tahoe requires twisted to set up, so that
 twisted will be there for nevow

---
 setup.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index c24290cb..9f290f27 100644
--- a/setup.py
+++ b/setup.py
@@ -188,11 +188,12 @@ it remains available even when some of the peers are unavailable,
 malfunctioning, or malicious."""
 
 
-# Default setup_requires are pyutil for the Windows installer builder(see
-# misc/sub-ver.py) and Twisted for the tests.
-#setup_requires = ['pyutil >= 1.3.16', 'Twisted >= 2.4.0']
 setup_requires = []
 
+# Nevow requires Twisted to setup, but doesn't declare that requirement in a way that enables
+# setuptools to satisfy that requirement before Nevow's setup.py tried to "import twisted".
+setup_requires.append('Twisted >= 2.4.0')
+
 # 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.
-- 
2.45.2