summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2003-09-14 16:43:45 +0000
committerrecht <recht@pkgsrc.org>2003-09-14 16:43:45 +0000
commite914ab3288c32de6c4b5d382398e7394d75afe6d (patch)
treeaca8ff7153d5fa2dbe4b26684fe239c50263adac /lang
parentff2172dab34298825042d409dfa313c03cd1e84a (diff)
downloadpkgsrc-e914ab3288c32de6c4b5d382398e7394d75afe6d.tar.gz
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@.
Diffstat (limited to 'lang')
-rw-r--r--lang/python/extension.mk6
1 files changed, 4 insertions, 2 deletions
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)