From: david-sarah <david-sarah@jacaranda.org>
Date: Sun, 16 Jan 2011 04:49:59 +0000 (-0800)
Subject: Temporary hack to investigate whether we are getting the right version of foolscap... 
X-Git-Url: https://git.rkrishnan.org/Site/Content/running.html?a=commitdiff_plain;h=727b25f622b01593d5617bd79ef80e212b403128;p=tahoe-lafs%2Ftahoe-lafs.git

Temporary hack to investigate whether we are getting the right version of foolscap on trunk. refs #1258
---

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)