From 727b25f622b01593d5617bd79ef80e212b403128 Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Sat, 15 Jan 2011 20:49:59 -0800
Subject: [PATCH] Temporary hack to investigate whether we are getting the
 right version of foolscap on trunk. refs #1258

---
 src/allmydata/_auto_deps.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/allmydata/_auto_deps.py b/src/allmydata/_auto_deps.py
index ba450f9b..fd13bab7 100644
--- a/src/allmydata/_auto_deps.py
+++ b/src/allmydata/_auto_deps.py
@@ -107,6 +107,12 @@ def require_auto_deps():
     require_python_version()
 
     import pkg_resources
+    import foolscap.api
+    if foolscap.api.__version__ != '0.6.0':
+        import os, sys
+        raise AssertionError("wrong foolscap!\nfoolscap.api.__version__=%r\nPYTHONPATH=%r\nsys.path=%r" %
+                             (foolscap.api.__version__, os.environ.get('PYTHONPATH'), sys.path))
+
     for requirement in install_requires:
         try:
             pkg_resources.require(requirement)
-- 
2.45.2