From 81b0e1382d9dd391eadb15b1e3035d68e5f80b46 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Thu, 4 Jun 2009 08:45:48 -0700
Subject: [PATCH] setup: require pysqlite >= v2.0.5. if we are running on
 Python < 2.5

---
 _auto_deps.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/_auto_deps.py b/_auto_deps.py
index d3735732..00b0edc1 100644
--- a/_auto_deps.py
+++ b/_auto_deps.py
@@ -19,6 +19,13 @@ install_requires=[
                   "Nevow >= 0.6.0",
                   ]
 
+# Sqlite comes built into Python >= 2.5, and is provided by the "pysqlite"
+# distribution for Python 2.4.
+import sys
+if sys.version_info < (2, 5):
+    # pysqlite v2.0.5 was shipped in Ubuntu 6.06 LTS "dapper" and Nexenta NCP 1.
+    install_requires.append("pysqlite >= 2.0.5")
+
 ## The following block is commented-out because there is not currently a pywin32 package which
 ## can be easy_install'ed and also which actually makes "import win32api" succeed.  Users have
 ## to manually install pywin32 on Windows before installing Tahoe.
@@ -35,7 +42,6 @@ install_requires=[
 ##    # until Twisted does that, Tahoe needs to be non-ignorant of the following requirement:
 ##    install_requires.append('pywin32')
 
-import sys
 if hasattr(sys, 'frozen'): # for py2exe
     install_requires=[]
 
-- 
2.45.2