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

Diff of /eclass/distutils.eclass

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

Revision 1.48 Revision 1.49
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/distutils.eclass,v 1.48 2008/05/30 10:22:35 hawking Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.49 2008/06/20 18:21:39 hawking Exp $
4 4
5# @ECLASS: distutils.eclass 5# @ECLASS: distutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# <python@gentoo.org> 7# <python@gentoo.org>
8# 8#
88 88
89# @FUNCTION: distutils_pkg_postrm 89# @FUNCTION: distutils_pkg_postrm
90# @DESCRIPTION: 90# @DESCRIPTION:
91# Generic pyc/pyo cleanup script. This function is exported. 91# Generic pyc/pyo cleanup script. This function is exported.
92distutils_pkg_postrm() { 92distutils_pkg_postrm() {
93 PYTHON_MODNAME=${PYTHON_MODNAME:-${PN}} 93 if [[ -z "${PYTHON_MODNAME}" &&\
94 -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]]; then
95 PYTHON_MODNAME=${PN}
96 fi
94 97
95 if has_version ">=dev-lang/python-2.3"; then 98 if has_version ">=dev-lang/python-2.3"; then
96 ebegin "Performing Python Module Cleanup .." 99 ebegin "Performing Python Module Cleanup .."
97 if [ -n "${PYTHON_MODNAME}" ]; then 100 if [ -n "${PYTHON_MODNAME}" ]; then
98 for pymod in ${PYTHON_MODNAME}; do 101 for pymod in ${PYTHON_MODNAME}; do

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

  ViewVC Help
Powered by ViewVC 1.1.20