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

Diff of /eclass/distutils.eclass

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

Revision 1.64 Revision 1.65
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.64 2009/09/11 20:03:51 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.65 2009/10/11 13:38:12 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#
195 fi 195 fi
196 done 196 done
197 fi 197 fi
198 198
199 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then 199 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
200 for pymod in ${PYTHON_MODNAME}; do 200 python_mod_optimize ${PYTHON_MODNAME}
201 python_mod_optimize "${pymod}"
202 done
203 else 201 else
204 for pymod in ${PYTHON_MODNAME}; do 202 for pymod in ${PYTHON_MODNAME}; do
205 python_mod_optimize "$(python_get_sitedir)/${pymod}" 203 python_mod_optimize "$(python_get_sitedir)/${pymod}"
206 done 204 done
207 fi 205 fi
223 fi 221 fi
224 done 222 done
225 fi 223 fi
226 224
227 if [[ -n "${PYTHON_MODNAME}" ]]; then 225 if [[ -n "${PYTHON_MODNAME}" ]]; then
228 for pymod in ${PYTHON_MODNAME}; do
229 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then 226 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
230 python_mod_cleanup "${pymod}" 227 python_mod_cleanup ${PYTHON_MODNAME}
231 else 228 else
229 for pymod in ${PYTHON_MODNAME}; do
232 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do 230 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do
233 if [[ -d "${pylibdir}/site-packages/${pymod}" ]]; then 231 if [[ -d "${pylibdir}/site-packages/${pymod}" ]]; then
234 python_mod_cleanup "${pylibdir#${ROOT}}/site-packages/${pymod}" 232 python_mod_cleanup "${pylibdir#${ROOT}}/site-packages/${pymod}"
235 fi 233 fi
236 done 234 done
237 fi
238 done 235 done
236 fi
239 else 237 else
240 python_mod_cleanup 238 python_mod_cleanup
241 fi 239 fi
242} 240}
243 241

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

  ViewVC Help
Powered by ViewVC 1.1.20