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

Diff of /eclass/python.eclass

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

Revision 1.10 Revision 1.11
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.10 2003/11/01 18:33:58 liquidx Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.11 2003/12/08 17:39:24 liquidx Exp $
4# 4#
5# Author: Alastair Tse <liquidx@gentoo.org> 5# Author: Alastair Tse <liquidx@gentoo.org>
6# 6#
7# A Utility Eclass that should be inherited by anything that deals with 7# A Utility Eclass that should be inherited by anything that deals with
8# Python or Python modules. 8# Python or Python modules.
177 SEARCH_PATH="${SEARCH_PATH} ${path}" 177 SEARCH_PATH="${SEARCH_PATH} ${path}"
178 done 178 done
179 fi 179 fi
180 180
181 for path in ${SEARCH_PATH}; do 181 for path in ${SEARCH_PATH}; do
182 einfo "Searching ${path} .." 182 einfo "Cleaning orphaned Python bytecode from ${path} .."
183 for obj in $(find ${path} -name *.pyc); do 183 for obj in $(find ${path} -name *.pyc); do
184 src_py="$(echo $obj | sed 's:c$::')" 184 src_py="$(echo $obj | sed 's:c$::')"
185 if [ ! -f "${src_py}" ]; then 185 if [ ! -f "${src_py}" ]; then
186 einfo "Purging ${src_py}[co]" 186 einfo "Purging ${src_py}[co]"
187 rm -f ${src_py}[co] 187 rm -f ${src_py}[co]

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20