From e914ab3288c32de6c4b5d382398e7394d75afe6d Mon Sep 17 00:00:00 2001 From: recht Date: Sun, 14 Sep 2003 16:43:45 +0000 Subject: hange extension.mk to also install optimized files for distutils packages. Inspired by FreeBSD "ports". Fix the PLISTs accordingly. Also, while at it, remove now obsolete compileall.py calls in post-install targets and insure that extension.mk is in included before builinlinks of other Python modules. Discussed with/ok'ed by drochner@. --- lang/python/extension.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lang') diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 8d4131548da..0f2590beff5 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.4 2003/09/11 13:13:47 recht Exp $ +# $NetBSD: extension.mk,v 1.5 2003/09/14 16:43:45 recht Exp $ # derive a python version from the package name if possible .if defined(PKGNAME_REQD) @@ -17,6 +17,8 @@ PKG_FAIL_REASON= "${PKGNAME} needs dynamic loading" PYSETUP?= setup.py PYSETUPBUILDARGS?= #empty PYSETUPINSTALLARGS?= #empty +PYSETUPOPTARGS?= -c -O1 +_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} PY_PATCHPLIST?= yes PYSETUPSUBDIR?= #empty @@ -26,7 +28,7 @@ do-build: do-install: (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ - ${PYSETUP} install ${PYSETUPINSTALLARGS}) + ${PYSETUP} install ${_PYSETUPINSTALLARGS}) .endif .if defined(PY_PATCHPLIST) -- cgit v1.2.3