]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: if any of "build", "develop", or "test" appear in the sys.argv then that means...
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 29 Jan 2009 05:55:34 +0000 (22:55 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 29 Jan 2009 05:55:34 +0000 (22:55 -0700)
I think there must be a much better solution for this -- probably to fix setuptools #17 and ship our own fork of setuptools and rely on it.

setup.py

index fa2320fe8f49e6547cece50577da99dabb9db833..7f10422bfd1812c74c29ad03cf99a5425d4f475c 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ for i in range(len(sys.argv)):
         pp.append(libdir)
         os.environ['PYTHONPATH'] = os.pathsep.join(pp)
 
-    if arg.startswith("develop"):
+    if arg.startswith("develop") or arg.startswith("build") or arg.startswith("test"): # argh! horrible kludge to workaround setuptools #17
         if sys.platform == "linux2":
             # workaround for tahoe #229 / setuptools #17, on debian
             sys.argv.extend(["--site-dirs", "/var/lib/python-support/python%d.%d" % (sys.version_info[:2])])