| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 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.51 2008/06/28 00:05:40 chtekk Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.52 2008/09/24 16:45:08 hawking 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 | # - liquidx (14/08/2006) |
69 | # - liquidx (14/08/2006) |
| 70 | pylibdir="$(${python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')" |
70 | pylibdir="$(${python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')" |
| 71 | [ -n "${pylibdir}" ] && dodir "${pylibdir}" |
71 | [ -n "${pylibdir}" ] && dodir "${pylibdir}" |
| 72 | |
72 | |
| 73 | if has_version ">=dev-lang/python-2.3"; then |
73 | if has_version ">=dev-lang/python-2.3"; then |
| 74 | ${python} setup.py install --root=${D} --no-compile "$@" || die |
74 | ${python} setup.py install --root="${D}" --no-compile "$@" ||\ |
|
|
75 | die "python setup.py install failed" |
| 75 | else |
76 | else |
| 76 | ${python} setup.py install --root=${D} "$@" || die |
77 | ${python} setup.py install --root="${D}" "$@" ||\ |
|
|
78 | die "python setup.py install failed" |
| 77 | fi |
79 | fi |
| 78 | |
80 | |
| 79 | DDOCS="CHANGELOG KNOWN_BUGS MAINTAINERS PKG-INFO CONTRIBUTORS TODO NEWS" |
81 | DDOCS="CHANGELOG KNOWN_BUGS MAINTAINERS PKG-INFO CONTRIBUTORS TODO NEWS" |
| 80 | DDOCS="${DDOCS} Change* MANIFEST* README* AUTHORS" |
82 | DDOCS="${DDOCS} Change* MANIFEST* README* AUTHORS" |
| 81 | |
83 | |