diff options
author | Alastair Tse <liquidx@gentoo.org> | 2003-10-09 15:11:24 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2003-10-09 15:11:24 +0000 |
commit | acc620a00dfcca81f98817fc797b29cfba81543f (patch) | |
tree | b8ce642471ab7f5186b1ee767eeebc259a09fbdf /eclass/python.eclass | |
parent | fix gcc3 #30634 (diff) | |
download | gentoo-2-acc620a00dfcca81f98817fc797b29cfba81543f.tar.gz gentoo-2-acc620a00dfcca81f98817fc797b29cfba81543f.tar.bz2 gentoo-2-acc620a00dfcca81f98817fc797b29cfba81543f.zip |
make PYTHON_DONTCOMPILE default for the moment
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r-- | eclass/python.eclass | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass index 01a3f4832a96..70428f29b94e 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.3 2003/10/09 08:57:20 liquidx Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.4 2003/10/09 15:11:24 liquidx Exp $ # # Author: Alastair Tse <liquidx@gentoo.org> # @@ -26,6 +26,12 @@ python_disable_pyc() { export PYTHON_DONTCOMPILE=1 } +python_enable_pyc() { + unset PYTHON_DONTCOMPILE +} + +python_disable_pyc + # # name: python_version # desc: run without arguments and it will export the version of python @@ -115,10 +121,10 @@ python_mod_compile() { # python_mod_optimize ${ROOT}usr/share/codegen # python_mod_optimize() { - einfo "Byte Compiling Python modules .." python_version - echo ${PYVER} - python ${ROOT}usr/lib/python${PYVER}/compileall.py $@ + einfo "Byte Compiling Python modules for ${PYVER} .." + python ${ROOT}usr/lib/python${PYVER}/compileall.py -q $@ + python -O ${ROOT}usr/lib/python${PYVER}/compileall.py -q $@ } # |