distutils allows installation in a separate tree by passing
--root. Do so when using destdir.
This commit is contained in:
parent
c3a1f9bfbc
commit
297e6be4e8
1 changed files with 6 additions and 1 deletions
|
@ -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
|
# derive a python version from the package name if possible
|
||||||
# optionally handled quoted package names
|
# optionally handled quoted package names
|
||||||
|
@ -15,11 +15,16 @@ PKG_FAIL_REASON+= "${PKGNAME} needs dynamic loading"
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(PYDISTUTILSPKG)
|
.if defined(PYDISTUTILSPKG)
|
||||||
|
.include "../../mk/bsd.prefs.mk"
|
||||||
|
|
||||||
PYSETUP?= setup.py
|
PYSETUP?= setup.py
|
||||||
PYSETUPBUILDARGS?= #empty
|
PYSETUPBUILDARGS?= #empty
|
||||||
PYSETUPINSTALLARGS?= #empty
|
PYSETUPINSTALLARGS?= #empty
|
||||||
PYSETUPOPTARGS?= -c -O1
|
PYSETUPOPTARGS?= -c -O1
|
||||||
_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS}
|
_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS}
|
||||||
|
.if ${_USE_DESTDIR} != "no"
|
||||||
|
_PYSETUPINSTALLARGS+= --root=${DESTDIR:Q}
|
||||||
|
.endif
|
||||||
PY_PATCHPLIST?= yes
|
PY_PATCHPLIST?= yes
|
||||||
PYSETUPSUBDIR?= #empty
|
PYSETUPSUBDIR?= #empty
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue