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

Diff of /eclass/distutils.eclass

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

Revision 1.80 Revision 1.82
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.80 2011/04/12 18:49:03 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.82 2012/03/15 16:51:54 patrick Exp $
4 4
5# @ECLASS: distutils.eclass 5# @ECLASS: distutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo Python Project <python@gentoo.org> 7# Gentoo Python Project <python@gentoo.org>
8# @BLURB: Eclass for packages with build systems using Distutils 8# @BLURB: Eclass for packages with build systems using Distutils
9# @DESCRIPTION: 9# @DESCRIPTION:
10# The distutils eclass defines phase functions for packages with build systems using Distutils. 10# The distutils eclass defines phase functions for packages with build systems using Distutils.
11 11
12if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then
13 inherit python
14fi
15
12inherit multilib python 16inherit multilib
13 17
14case "${EAPI:-0}" in 18case "${EAPI:-0}" in
15 0|1) 19 0|1)
16 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm 20 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
17 ;; 21 ;;
438 for nspkg_pth_file in "${nspkg_pth_files[@]}"; do 442 for nspkg_pth_file in "${nspkg_pth_files[@]}"; do
439 einfo " '${nspkg_pth_file#${ED%/}}':" 443 einfo " '${nspkg_pth_file#${ED%/}}':"
440 while read -r line; do 444 while read -r line; do
441 einfo " $(echo "${line}" | sed -e "s/.*types\.ModuleType('\([^']\+\)').*/\1/")" 445 einfo " $(echo "${line}" | sed -e "s/.*types\.ModuleType('\([^']\+\)').*/\1/")"
442 done < "${nspkg_pth_file}" 446 done < "${nspkg_pth_file}"
443 if ! has "${EAPI:-0}" 0 1 2 3; then 447 #if ! has "${EAPI:-0}" 0 1 2 3; then
444 rm -f "${nspkg_pth_file}" || die "Deletion of '${nspkg_pth_file}' failed" 448 # rm -f "${nspkg_pth_file}" || die "Deletion of '${nspkg_pth_file}' failed"
445 fi 449 #fi
446 done 450 done
447 einfo 451 einfo
448 fi 452 fi
449 453
450 if [[ -e "${ED}usr/local" ]]; then 454 if [[ -e "${ED}usr/local" ]]; then

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.82

  ViewVC Help
Powered by ViewVC 1.1.20