From: Brian Warner <warner@allmydata.com>
Date: Tue, 6 Mar 2007 02:46:06 +0000 (-0700)
Subject: Makefile: update figleaf code to use INSTDIR instead of now-obsolete builddir.py
X-Git-Url: https://git.rkrishnan.org/components/listings/pb3user.py?a=commitdiff_plain;h=0d31acf11387c890633462d60a5136bb918ca3a6;p=tahoe-lafs%2Ftahoe-lafs.git

Makefile: update figleaf code to use INSTDIR instead of now-obsolete builddir.py
---

diff --git a/Makefile b/Makefile
index 812e1a0a..fdbdbb21 100644
--- 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
index ce3d821a..00000000
--- a/builddir.py
+++ /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