diff options
author | recht <recht@pkgsrc.org> | 2003-09-11 13:13:47 +0000 |
---|---|---|
committer | recht <recht@pkgsrc.org> | 2003-09-11 13:13:47 +0000 |
commit | 13d692511892ffdcc245e61cfc047931948ac864 (patch) | |
tree | 4914b5d40298ec08ce1e887ff96f80848d027c75 /lang/python/extension.mk | |
parent | 83a09b8af8678046d25e1fb0bef24490d6ee8d1f (diff) | |
download | pkgsrc-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/extension.mk')
-rw-r--r-- | lang/python/extension.mk | 6 |
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) |