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

Diff of /eclass/python-distutils-ng.eclass

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

Revision 1.14 Revision 1.15
1# Copyright 1999-2012 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/Attic/python-distutils-ng.eclass,v 1.14 2012/05/02 21:40:42 floppym Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.15 2012/05/03 00:31:58 floppym Exp $
4 4
5# @ECLASS: python-distutils-ng 5# @ECLASS: python-distutils-ng
6# @MAINTAINER: 6# @MAINTAINER:
7# Python herd <python@gentoo.org> 7# Python herd <python@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
132# This will run the command_to_run in implementation-specific working directory. 132# This will run the command_to_run in implementation-specific working directory.
133_python-distutils-ng_run_for_impl() { 133_python-distutils-ng_run_for_impl() {
134 local impl="${1}" 134 local impl="${1}"
135 local command="${2}" 135 local command="${2}"
136 136
137 S="${WORKDIR}/impl_${impl}/${_PACKAGE_SPECIFIC_S}" 137 local S="${WORKDIR}/impl_${impl}/${_PACKAGE_SPECIFIC_S}"
138 PYTHON="$(_python-distutils-ng_get_binary_for_implementation "${impl}")" 138 PYTHON="$(_python-distutils-ng_get_binary_for_implementation "${impl}")"
139 EPYTHON="${impl/_/.}" 139 EPYTHON="${impl/_/.}"
140 140
141 einfo "Running ${command} in ${S} for ${impl}" 141 einfo "Running ${command} in ${S} for ${impl}"
142 142
382 else 382 else
383 _python-distutils-ng_run_for_each_impl \ 383 _python-distutils-ng_run_for_each_impl \
384 _python-distutils-ng_default_distutils_install 384 _python-distutils-ng_default_distutils_install
385 fi 385 fi
386 386
387 S="${WORKDIR}/${_PACKAGE_SPECIFIC_S}"
388 if type python_install_all &> /dev/null; then 387 if type python_install_all &> /dev/null; then
389 einfo "Running python_install_all in ${S} for all" 388 einfo "Running python_install_all in ${S} for all"
390 pushd "${S}" &> /dev/null 389 pushd "${S}" &> /dev/null
391 python_install_all 390 python_install_all
392 popd &> /dev/null 391 popd &> /dev/null

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20