summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2003-09-11 13:13:47 +0000
committerrecht <recht@pkgsrc.org>2003-09-11 13:13:47 +0000
commit13d692511892ffdcc245e61cfc047931948ac864 (patch)
tree4914b5d40298ec08ce1e887ff96f80848d027c75 /lang/python
parent83a09b8af8678046d25e1fb0bef24490d6ee8d1f (diff)
downloadpkgsrc-13d692511892ffdcc245e61cfc047931948ac864.tar.gz
Adapt a change from FreeBSD's ports Mk/bsd.python.mk.
Change the order of PYSETUP*AGS and the corresponding target. Eg.: s/${PYSETUPINSTALLARGS} install/install ${PYSETUPINSTALLARGS}/ This allows us to automatically install .pyo files with a PYSETUPINSTALLARGS=-O1 -c and thus drop the compileall.py stuff in the post-install target. ok'ed by drochner@
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/extension.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index 86d225db4c9..8d4131548da 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.3 2003/05/09 09:24:17 jdolecek Exp $
+# $NetBSD: extension.mk,v 1.4 2003/09/11 13:13:47 recht Exp $
# derive a python version from the package name if possible
.if defined(PKGNAME_REQD)
@@ -22,11 +22,11 @@ PYSETUPSUBDIR?= #empty
do-build:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
- ${PYSETUP} ${PYSETUPBUILDARGS} build)
+ ${PYSETUP} build ${PYSETUPBUILDARGS})
do-install:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
- ${PYSETUP} ${PYSETUPINSTALLARGS} install)
+ ${PYSETUP} install ${PYSETUPINSTALLARGS})
.endif
.if defined(PY_PATCHPLIST)