summaryrefslogtreecommitdiff
path: root/lang/python
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
commit10e7a5c6c648063ea260feb69cc5ae905f329299 (patch)
treeaca8ff7153d5fa2dbe4b26684fe239c50263adac /lang/python
parent6d8a74b2435f19d7561270f36e05864532486ae6 (diff)
downloadpkgsrc-10e7a5c6c648063ea260feb69cc5ae905f329299.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/python')
-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)