pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python distutils allows installation in a separat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/17b48addb2e8
branches:  trunk
changeset: 519771:17b48addb2e8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Oct 09 12:50:38 2006 +0000

description:
distutils allows installation in a separate tree by passing
--root. Do so when using destdir.

diffstat:

 lang/python/extension.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r e001a4e7f6fd -r 17b48addb2e8 lang/python/extension.mk
--- a/lang/python/extension.mk  Mon Oct 09 12:47:21 2006 +0000
+++ b/lang/python/extension.mk  Mon Oct 09 12:50:38 2006 +0000
@@ -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 @@
 .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
 



Home | Main Index | Thread Index | Old Index