diff options
author | tnn <tnn@pkgsrc.org> | 2008-04-24 01:39:25 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2008-04-24 01:39:25 +0000 |
commit | 12935025fe7b68ec41c85e733fb82b92010507e4 (patch) | |
tree | 6bfaed92e59f67f3edd6d4ab3ab392ce534637db /lang/python/extension.mk | |
parent | 710220f19b47161e48feddfd5a513e920f551509 (diff) | |
download | pkgsrc-12935025fe7b68ec41c85e733fb82b92010507e4.tar.gz |
prepare for arrival of Python 2.5
Diffstat (limited to 'lang/python/extension.mk')
-rw-r--r-- | lang/python/extension.mk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 884295d80ea..45d6967ca09 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.17 2007/10/31 00:59:52 joerg Exp $ +# $NetBSD: extension.mk,v 1.18 2008/04/24 01:39:25 tnn Exp $ # derive a python version from the package name if possible # optionally handled quoted package names @@ -28,13 +28,19 @@ _PYSETUPINSTALLARGS+= --root=${DESTDIR:Q} PY_PATCHPLIST?= yes PYSETUPSUBDIR?= #empty +PY_NO_EGG?= yes +.if !empty(PY_NO_EGG:M[yY][eE][sS]) +# see python25/patches/patch-av +INSTALL_ENV+= PKGSRC_PYTHON_NO_EGG=defined +.endif + do-build: (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ ${PYSETUP} build ${PYSETUPBUILDARGS}) do-install: - (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ - ${PYSETUP} "install" ${_PYSETUPINSTALLARGS}) + (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \ + ${PYTHONBIN} ${PYSETUP} "install" ${_PYSETUPINSTALLARGS}) .endif .if defined(PY_PATCHPLIST) |