diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-08 13:55:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-08 13:55:58 +0000 |
commit | d61c3b641cd96ac5f40852e5eb7e205545887dcc (patch) | |
tree | 60e034a8771d5fea53aae476bb138522afe5fd76 /lang/python | |
parent | 19942c1b2813102d2ea9eac7a03a937f94b1c410 (diff) | |
download | pkgsrc-d61c3b641cd96ac5f40852e5eb7e205545887dcc.tar.gz |
Provide PY_COMPILE_ALL and PY_COMPILE_O_ALL to compile all Python
sources in a directory (tree) in pversion.mk. Adjust the various places
that called it locally.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/pyversion.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index ae45ab50988..0547bcfe6a6 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.72 2009/07/02 09:37:12 joerg Exp $ +# $NetBSD: pyversion.mk,v 1.73 2009/07/08 13:55:59 joerg Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -156,6 +156,10 @@ BUILDLINK_DEPMETHOD.python?= build .endif PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX} +PY_COMPILE_ALL= \ + ${PYTHONBIN} ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q +PY_COMPILE_O_ALL= \ + ${PYTHONBIN} -O ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q .if exists(${PYTHONBIN}) PYINC!= ${PYTHONBIN} -c "import distutils.sysconfig; \ |