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

Diff of /eclass/distutils.eclass

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

Revision 1.65 Revision 1.66
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.65 2009/10/11 13:38:12 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.66 2009/11/06 00:35:30 arfrever 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#
63 if ! has "${EAPI:-0}" 0 1 && [[ "${EBUILD_PHASE}" != "prepare" ]]; then 63 if ! has "${EAPI:-0}" 0 1 && [[ "${EBUILD_PHASE}" != "prepare" ]]; then
64 die "${FUNCNAME}() can be used only in src_prepare() phase" 64 die "${FUNCNAME}() can be used only in src_prepare() phase"
65 fi 65 fi
66 66
67 # Delete ez_setup files to prevent packages from installing 67 # Delete ez_setup files to prevent packages from installing
68 # setuptools on their own. 68 # Setuptools on their own.
69 local ez_setup_existence 69 local ez_setup_existence="0"
70 [[ -d ez_setup || -f ez_setup.py ]] && ez_setup_existence="1" 70 [[ -d ez_setup || -f ez_setup.py ]] && ez_setup_existence="1"
71 rm -fr ez_setup* 71 rm -fr ez_setup*
72 if [[ "${ez_setup_existence}" == "1" ]]; then 72 if [[ "${ez_setup_existence}" == "1" ]]; then
73 echo "def use_setuptools(*args, **kwargs): pass" > ez_setup.py 73 echo "def use_setuptools(*args, **kwargs): pass" > ez_setup.py
74 fi
75
76 # Delete distribute_setup files to prevent packages from installing
77 # Distribute on their own.
78 local distribute_setup_existence="0"
79 [[ -d distribute_setup || -f distribute_setup.py ]] && distribute_setup_existence="1"
80 rm -fr distribute_setup*
81 if [[ "${distribute_setup_existence}" == "1" ]]; then
82 echo "def use_setuptools(*args, **kwargs): pass" > distribute_setup.py
74 fi 83 fi
75 84
76 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then 85 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then
77 python_copy_sources 86 python_copy_sources
78 fi 87 fi

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20