]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: use "setup.py develop --multi-version" so that if there is a too-old version...
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 20 Nov 2008 21:15:45 +0000 (14:15 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 20 Nov 2008 21:15:45 +0000 (14:15 -0700)
setup.py

index 9f290f27bf017a6351b72a844bbf1cec49c13936..2aae4789f16aa9689b1cb6baa2253e37ef150ea5 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ def add_tahoe_paths():
 
       mkdir -p $(BASEDIR)/support/lib/python2.5/site-packages
        (or cygpath equivalent)
-      setup.py develop --prefix=$(BASEDIR)/support
+      setup.py develop --multi-version --prefix=$(BASEDIR)/support
 
     This installs .eggs for any dependent libraries that aren't already
     available on the system, into support/lib/pythonN.N/site-packages (or
@@ -291,7 +291,7 @@ class BuildTahoe(Command):
                                stat.S_IXOTH | stat.S_IROTH )
         os.chmod(bin_tahoe, new_mode)
 
-        # 'setup.py develop --prefix SUPPORT' will complain if SUPPORTLIB is
+        # 'setup.py develop --multi-version --prefix SUPPORT' will complain if SUPPORTLIB is
         # not on PYTHONPATH, because it thinks you are installing to a place
         # that will not be searched at runtime (which is true, except that we
         # add SUPPORTLIB to PYTHONPATH to run tests, etc). So set up
@@ -300,7 +300,7 @@ class BuildTahoe(Command):
         if not os.path.isdir(supportlib):
             os.makedirs(supportlib)
 
-        command = [sys.executable, "setup.py", "develop", "--prefix", "support"]
+        command = [sys.executable, "setup.py", "develop", "--multi-version", "--prefix", "support"]
         if sys.platform == "linux2":
             # workaround for tahoe #229 / setuptools #17, on debian
             command.extend(["--site-dirs", "/var/lib/python-support/" + pyver])