summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrecht <recht>2003-09-14 16:43:45 +0000
committerrecht <recht>2003-09-14 16:43:45 +0000
commit5980646941cc3492b99800e167d16bdf5b6fc5e3 (patch)
treeaca8ff7153d5fa2dbe4b26684fe239c50263adac /lang
parent734f40da76f9b44d22dbd66ce2c1fe781d1e8678 (diff)
downloadpkgsrc-5980646941cc3492b99800e167d16bdf5b6fc5e3.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)