summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2006-10-09 12:50:38 +0000
committerjoerg <joerg>2006-10-09 12:50:38 +0000
commitf0da24841ebace4418bbe664263b9415e23a1837 (patch)
treebbafb48f53c538faf4ee7c14bac1f9676296e705
parent722d5af9f97fbf3cbd91fd49b00909cf3fbcc577 (diff)
downloadpkgsrc-f0da24841ebace4418bbe664263b9415e23a1837.tar.gz
distutils allows installation in a separate tree by passing
--root. Do so when using destdir.
-rw-r--r--lang/python/extension.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index 5262e736921..f354b50556b 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.14 2006/01/24 07:25:35 recht Exp $
+# $NetBSD: extension.mk,v 1.15 2006/10/09 12:50:38 joerg Exp $
# derive a python version from the package name if possible
# optionally handled quoted package names
@@ -15,11 +15,16 @@ PKG_FAIL_REASON+= "${PKGNAME} needs dynamic loading"
.endif
.if defined(PYDISTUTILSPKG)
+.include "../../mk/bsd.prefs.mk"
+
PYSETUP?= setup.py
PYSETUPBUILDARGS?= #empty
PYSETUPINSTALLARGS?= #empty
PYSETUPOPTARGS?= -c -O1
_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS}
+.if ${_USE_DESTDIR} != "no"
+_PYSETUPINSTALLARGS+= --root=${DESTDIR:Q}
+.endif
PY_PATCHPLIST?= yes
PYSETUPSUBDIR?= #empty