]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Temporary hack to investigate whether we are getting the right version of foolscap...
authordavid-sarah <david-sarah@jacaranda.org>
Sun, 16 Jan 2011 04:49:59 +0000 (20:49 -0800)
committerdavid-sarah <david-sarah@jacaranda.org>
Sun, 16 Jan 2011 04:49:59 +0000 (20:49 -0800)
src/allmydata/_auto_deps.py

index ba450f9b6f3743a54d839e835ca2babb8431f31b..fd13bab710ea06d9627fe1e26e1bda24851c71df 100644 (file)
@@ -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)