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

Diff of /eclass/distutils.eclass

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

Revision 1.63 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.63 2009/09/11 12:24:29 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#
159 159
160 echo ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" 160 echo ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@"
161 ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed" 161 ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed"
162 fi 162 fi
163 163
164 if [[ -e "${D}usr/local" ]]; then
165 die "Illegal installation into /usr/local"
166 fi
167
164 local default_docs 168 local default_docs
165 default_docs="AUTHORS Change* CHANGELOG CONTRIBUTORS KNOWN_BUGS MAINTAINERS MANIFEST* NEWS PKG-INFO README* TODO" 169 default_docs="AUTHORS Change* CHANGELOG CONTRIBUTORS KNOWN_BUGS MAINTAINERS MANIFEST* NEWS PKG-INFO README* TODO"
166 170
167 local doc 171 local doc
168 for doc in ${default_docs}; do 172 for doc in ${default_docs}; do
191 fi 195 fi
192 done 196 done
193 fi 197 fi
194 198
195 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
196 for pymod in ${PYTHON_MODNAME}; do 200 python_mod_optimize ${PYTHON_MODNAME}
197 python_mod_optimize "${pymod}"
198 done
199 else 201 else
200 for pymod in ${PYTHON_MODNAME}; do 202 for pymod in ${PYTHON_MODNAME}; do
201 python_mod_optimize "$(python_get_sitedir)/${pymod}" 203 python_mod_optimize "$(python_get_sitedir)/${pymod}"
202 done 204 done
203 fi 205 fi
219 fi 221 fi
220 done 222 done
221 fi 223 fi
222 224
223 if [[ -n "${PYTHON_MODNAME}" ]]; then 225 if [[ -n "${PYTHON_MODNAME}" ]]; then
224 for pymod in ${PYTHON_MODNAME}; do
225 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
226 python_mod_cleanup "${pymod}" 227 python_mod_cleanup ${PYTHON_MODNAME}
227 else 228 else
229 for pymod in ${PYTHON_MODNAME}; do
228 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do 230 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do
229 if [[ -d "${pylibdir}/site-packages/${pymod}" ]]; then 231 if [[ -d "${pylibdir}/site-packages/${pymod}" ]]; then
230 python_mod_cleanup "${pylibdir#${ROOT}}/site-packages/${pymod}" 232 python_mod_cleanup "${pylibdir#${ROOT}}/site-packages/${pymod}"
231 fi 233 fi
232 done 234 done
233 fi
234 done 235 done
236 fi
235 else 237 else
236 python_mod_cleanup 238 python_mod_cleanup
237 fi 239 fi
238} 240}
239 241

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

  ViewVC Help
Powered by ViewVC 1.1.20