]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Makefile: update figleaf code to use INSTDIR instead of now-obsolete builddir.py
authorBrian Warner <warner@allmydata.com>
Tue, 6 Mar 2007 02:46:06 +0000 (19:46 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 6 Mar 2007 02:46:06 +0000 (19:46 -0700)
Makefile
builddir.py [deleted file]

index 812e1a0a56515fae3fa88acf143a88c77a926e45..fdbdbb21454f5141e2b6e222e7d1696d1f31ffd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ clean-Crypto:
 
 INSTDIR=$(BASE)/instdir/lib/python$(shell $(PYTHON) -c 'import sys;print sys.version_info[0]').$(shell $(PYTHON) -c 'import sys;print sys.version_info[1]')/site-packages
 
+show-instdir:
+       @echo $(INSTDIR)
+
 ifneq ($(PYTHONPATH),)
 PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
 else
@@ -56,13 +59,13 @@ test-figleaf: build
        $(PP) $(TRIAL) --reporter=bwverbose-figleaf $(TEST)
 
 figleaf-output:
-       $(PP) $(PYTHON) misc/figleaf2html -d coverage-html -r `$(PYTHON) ./builddir.py`
+       $(PP) $(PYTHON) misc/figleaf2html -d coverage-html -r $(INSTDIR)
        @echo "now point your browser at coverage-html/index.html"
 # after doing test-figleaf and figleaf-output, point your browser at
 # coverage-html/index.html
 
 .figleaf.el: .figleaf
-       $(PP) $(PYTHON) misc/figleaf2el.py .figleaf `$(PYTHON) ./builddir.py`
+       $(PP) $(PYTHON) misc/figleaf2el.py .figleaf $(INSTDIR)
 
 pyflakes:
        pyflakes src/allmydata
diff --git a/builddir.py b/builddir.py
deleted file mode 100644 (file)
index ce3d821..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#! /usr/bin/python
-
-import sys, os.path
-from distutils.util import get_platform
-
-# because we use extension modules, we need a platform+version-specific
-# libdir. If we were using a pure-python module, this would just be "lib".
-plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
-libdir = os.path.join("build", "lib" + plat_specifier)
-if len(sys.argv) > 1 and sys.argv[1] == "-a":
-    libdir = os.path.abspath(libdir)
-print libdir