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

Diff of /eclass/distutils.eclass

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

Revision 1.82 Revision 1.85
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2014 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.82 2012/03/15 16:51:54 patrick Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.85 2014/11/20 15:32:09 mgorny 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#
12# This eclass is DEPRECATED. Please use distutils-r1 instead.
11 13
12if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then 14if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then
13 inherit python 15 inherit python
14fi 16fi
15 17
31 33
32 if has "${EAPI:-0}" 0 1 && [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then 34 if has "${EAPI:-0}" 0 1 && [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
33 ewarn 35 ewarn
34 ewarn "\"${EBUILD}\":" 36 ewarn "\"${EBUILD}\":"
35 ewarn "Deprecation Warning: Usage of distutils.eclass in packages supporting installation" 37 ewarn "Deprecation Warning: Usage of distutils.eclass in packages supporting installation"
36 ewarn "for multiple Python ABIs in EAPI <=1 is deprecated and will be banned on 2011-06-01." 38 ewarn "for multiple Python ABIs in EAPI <=1 is deprecated."
37 ewarn "The ebuild needs to be fixed. Please report a bug, if it has not been already reported." 39 ewarn "The ebuild should to be fixed. Please report a bug, if it has not been already reported."
38 ewarn 40 ewarn
39 elif has "${EAPI:-0}" 0 1 2 && [[ -z "${SUPPORT_PYTHON_ABIS}" ]]; then 41 elif has "${EAPI:-0}" 0 1 2 && [[ -z "${SUPPORT_PYTHON_ABIS}" ]]; then
40 ewarn 42 ewarn
41 ewarn "\"${EBUILD}\":" 43 ewarn "\"${EBUILD}\":"
42 ewarn "Deprecation Warning: Usage of distutils.eclass in packages not supporting installation" 44 ewarn "Deprecation Warning: Usage of distutils.eclass in packages not supporting installation"
43 ewarn "for multiple Python ABIs in EAPI <=2 is deprecated and will be banned on 2011-06-01." 45 ewarn "for multiple Python ABIs in EAPI <=2 is deprecated."
44 ewarn "The ebuild needs to be fixed. Please report a bug, if it has not been already reported." 46 ewarn "The ebuild should to be fixed. Please report a bug, if it has not been already reported."
45 ewarn 47 ewarn
46 fi 48 fi
47 49
48# 'python' variable is deprecated. Use PYTHON() instead. 50# 'python' variable is deprecated. Use PYTHON() instead.
49if has "${EAPI:-0}" 0 1 2 && [[ -z "${SUPPORT_PYTHON_ABIS}" ]]; then 51if has "${EAPI:-0}" 0 1 2 && [[ -z "${SUPPORT_PYTHON_ABIS}" ]]; then
96 IUSE="test" 98 IUSE="test"
97 DEPEND+="${DEPEND:+ }test? ( dev-python/pytest )" 99 DEPEND+="${DEPEND:+ }test? ( dev-python/pytest )"
98 # trial requires an argument, which is usually equal to "${PN}". 100 # trial requires an argument, which is usually equal to "${PN}".
99 elif [[ "${DISTUTILS_SRC_TEST}" =~ ^trial(\ .*)?$ ]]; then 101 elif [[ "${DISTUTILS_SRC_TEST}" =~ ^trial(\ .*)?$ ]]; then
100 IUSE="test" 102 IUSE="test"
101 DEPEND+="${DEPEND:+ }test? ( dev-python/twisted )" 103 DEPEND+="${DEPEND:+ }test? ( dev-python/twisted-core )"
102 fi 104 fi
103fi 105fi
104 106
105if [[ -n "${DISTUTILS_SRC_TEST}" ]]; then 107if [[ -n "${DISTUTILS_SRC_TEST}" ]]; then
106 EXPORT_FUNCTIONS src_test 108 EXPORT_FUNCTIONS src_test

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

  ViewVC Help
Powered by ViewVC 1.1.20