/[gentoo-x86]/eclass/python.eclass
Gentoo

Diff of /eclass/python.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.40 Revision 1.41
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.40 2008/05/29 22:03:59 hawking Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.41 2008/05/30 09:58:28 hawking Exp $
4 4
5# @ECLASS: python.eclass 5# @ECLASS: python.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# python@gentoo.org 7# python@gentoo.org
8# 8#
192 case $1 in 192 case $1 in
193 -l|-f|-q) 193 -l|-f|-q)
194 myopts="${myopts} $1" 194 myopts="${myopts} $1"
195 ;; 195 ;;
196 -d|-x) 196 -d|-x)
197 # -x takes regexp as argument so quoting is necessary.
198 myopts="${myopts} $1 \"$2\"" 197 myopts="${myopts} $1 $2"
199 shift 198 shift
200 ;; 199 ;;
201 -*) 200 -*)
202 ewarn "${FUNCNAME}: Ignoring compile option $1" 201 ewarn "${FUNCNAME}: Ignoring compile option $1"
203 ;; 202 ;;
216 PYVER=${PYTHON_OVERRIDE_PYVER} 215 PYVER=${PYTHON_OVERRIDE_PYVER}
217 else 216 else
218 python_version 217 python_version
219 fi 218 fi
220 219
221 # set opts 220 # set additional opts
222 if [ "${PYVER}" = "2.2" ]; then 221 myopts="${myopts} -q"
223 compileopts=""
224 else
225 compileopts="-q"
226 fi
227 222
228 ebegin "Byte compiling python modules for python-${PYVER} .." 223 ebegin "Byte compiling python modules for python-${PYVER} .."
229 if [ -n "${mydirs}" ]; then 224 if [ -n "${mydirs}" ]; then
230 python${PYVER} \ 225 python${PYVER} \
231 ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py \ 226 ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py \
232 ${compileopts} ${myopts} ${mydirs} 227 ${myopts} ${mydirs}
233 python${PYVER} -O \ 228 python${PYVER} -O \
234 ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py \ 229 ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py \
235 ${compileopts} ${myopts} ${mydirs} 230 ${myopts} ${mydirs}
236 fi 231 fi
237 232
238 if [ -n "${myfiles}" ]; then 233 if [ -n "${myfiles}" ]; then
239 python_mod_compile ${myfiles} 234 python_mod_compile ${myfiles}
240 fi 235 fi

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20