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

Diff of /eclass/distutils.eclass

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

Revision 1.56 Revision 1.57
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.56 2009/08/01 22:36:20 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.57 2009/08/02 00:30:29 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#
69# @DESCRIPTION: 69# @DESCRIPTION:
70# The distutils src_compile function, this function is exported 70# The distutils src_compile function, this function is exported
71distutils_src_compile() { 71distutils_src_compile() {
72 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then 72 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
73 build_modules() { 73 build_modules() {
74 echo "$(get_python)" setup.py build -b "build-${PYTHON_ABI}" "$@"
74 ${python} setup.py build -b "build-${PYTHON_ABI}" "$@" 75 "$(get_python)" setup.py build -b "build-${PYTHON_ABI}" "$@"
75 } 76 }
76 python_execute_function build_modules "$@" 77 python_execute_function build_modules "$@"
77 else 78 else
78 ${python} setup.py build "$@" || die "compilation failed" 79 ${python} setup.py build "$@" || die "compilation failed"
79 fi 80 fi
93 install_modules() { 94 install_modules() {
94 # need this for python-2.5 + setuptools in cases where 95 # need this for python-2.5 + setuptools in cases where
95 # a package uses distutils but does not install anything 96 # a package uses distutils but does not install anything
96 # in site-packages. (eg. dev-java/java-config-2.x) 97 # in site-packages. (eg. dev-java/java-config-2.x)
97 # - liquidx (14/08/2006) 98 # - liquidx (14/08/2006)
98 pylibdir="$(${python} -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')" 99 pylibdir="$("$(get_python)" -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')"
99 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}" 100 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}"
100 101
101 echo ${python} setup.py build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@" 102 echo "$(get_python)" setup.py build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@"
102 ${python} setup.py build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@" 103 "$(get_python)" setup.py build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@"
103 } 104 }
104 python_execute_function install_modules "$@" 105 python_execute_function install_modules "$@"
105 else 106 else
106 # need this for python-2.5 + setuptools in cases where 107 # need this for python-2.5 + setuptools in cases where
107 # a package uses distutils but does not install anything 108 # a package uses distutils but does not install anything

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

  ViewVC Help
Powered by ViewVC 1.1.20