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

Diff of /eclass/distutils.eclass

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

Revision 1.49 Revision 1.50
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.49 2008/06/20 18:21:39 hawking Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.50 2008/06/24 13:40:50 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#
113# @FUNCTION: distutils_pkg_postinst 113# @FUNCTION: distutils_pkg_postinst
114# @DESCRIPTION: 114# @DESCRIPTION:
115# This is a generic optimization, you should override it if your package 115# This is a generic optimization, you should override it if your package
116# installs things in another directory. This function is exported 116# installs things in another directory. This function is exported
117distutils_pkg_postinst() { 117distutils_pkg_postinst() {
118 PYTHON_MODNAME=${PYTHON_MODNAME:-${PN}} 118 if [[ -z "${PYTHON_MODNAME}" &&\
119 -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]]; then
120 PYTHON_MODNAME=${PN}
121 fi
119 122
120 if has_version ">=dev-lang/python-2.3"; then 123 if has_version ">=dev-lang/python-2.3"; then
121 python_version 124 python_version
122 for pymod in ${PYTHON_MODNAME}; do 125 for pymod in ${PYTHON_MODNAME}; do
123 python_mod_optimize \ 126 python_mod_optimize \

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

  ViewVC Help
Powered by ViewVC 1.1.20