From d344d13dc894d3e9eb8e185626b9db2dbd2821c5 Mon Sep 17 00:00:00 2001
From: bwarsaw <>
Date: Mon, 1 Dec 2003 00:12:30 +0000
Subject: Add a PKGDIR variable which allows the builder to specify an
 alternative directory to unpack the distutils packages.  You need to specify
 it on the make command like, e.g. "make PKGDIR=/tmp install".

Closes SF # 784700.
---
 misc/Makefile.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/misc/Makefile.in b/misc/Makefile.in
index c557fe56..fc6fd1bc 100644
--- a/misc/Makefile.in
+++ b/misc/Makefile.in
@@ -50,6 +50,7 @@ SETUPINSTOPTS=	--install-lib $(DESTDIR)$(PYTHONLIBDIR) \
 		--install-purelib $(DESTDIR)$(PYTHONLIBDIR) \
 		--install-data $(DESTDIR)$(PYTHONLIBDIR)
 SETUPCMD=	setup.py --quiet install $(SETUPINSTOPTS)
+PKGDIR= 	$(srcdir)
 
 EMAILPKG=	email-2.5.4
 JACODECSPKG=	JapaneseCodecs-1.4.9
@@ -88,8 +89,8 @@ install-other:
 install-packages:
 	for p in $(PACKAGES); \
 	do \
-	    gunzip -c $(srcdir)/$$p.tar.gz | tar xf -; \
-	    (cd $$p ; umask 02 ; PYTHONPATH=$(PYTHONLIBDIR) $(PYTHON) $(SETUPCMD)); \
+	    gunzip -c $(srcdir)/$$p.tar.gz | (cd $(PKGDIR) ; tar xf -); \
+	    (cd $(PKGDIR)/$$p ; umask 02 ; PYTHONPATH=$(PYTHONLIBDIR) $(PYTHON) $(SETUPCMD)); \
 	done
 
 finish:
-- 
cgit v1.2.3