| 1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
| 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.15 2003/10/02 23:14:17 liquidx Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.16 2003/10/09 08:41:41 liquidx Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Jon Nelson <jnelson@gentoo.org> |
5 | # Author: Jon Nelson <jnelson@gentoo.org> |
| 6 | # Current Maintainer: Alastair Tse <liquidx@gentoo.org> |
6 | # Current Maintainer: Alastair Tse <liquidx@gentoo.org> |
| 7 | # |
7 | # |
| 8 | # The distutils eclass is designed to allow easier installation of |
8 | # The distutils eclass is designed to allow easier installation of |
| … | |
… | |
| 17 | # |
17 | # |
| 18 | # - Variables: |
18 | # - Variables: |
| 19 | # PYTHON_SLOT_VERSION - for Zope support |
19 | # PYTHON_SLOT_VERSION - for Zope support |
| 20 | # DOCS - additional DOCS |
20 | # DOCS - additional DOCS |
| 21 | |
21 | |
|
|
22 | inherit python |
|
|
23 | |
| 22 | ECLASS=distutils |
24 | ECLASS=distutils |
| 23 | INHERITED="$INHERITED $ECLASS" |
25 | INHERITED="$INHERITED $ECLASS" |
| 24 | |
26 | |
| 25 | # This helps make it possible to add extensions to python slots. |
27 | # This helps make it possible to add extensions to python slots. |
| 26 | # Normally only a -py21- ebuild would set PYTHON_SLOT_VERSION. |
28 | # Normally only a -py21- ebuild would set PYTHON_SLOT_VERSION. |
| … | |
… | |
| 31 | newdepend "virtual/python" |
33 | newdepend "virtual/python" |
| 32 | python="python" |
34 | python="python" |
| 33 | fi |
35 | fi |
| 34 | |
36 | |
| 35 | distutils_src_compile() { |
37 | distutils_src_compile() { |
|
|
38 | python_disable_pyc |
| 36 | ${python} setup.py build "$@" || die "compilation failed" |
39 | ${python} setup.py build "$@" || die "compilation failed" |
| 37 | } |
40 | } |
| 38 | |
41 | |
| 39 | distutils_src_install() { |
42 | distutils_src_install() { |
|
|
43 | python_disable_pyc |
| 40 | ${python} setup.py install --root=${D} "$@" || die |
44 | ${python} setup.py install --root=${D} "$@" || die |
| 41 | |
45 | |
| 42 | dodoc CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO |
46 | dodoc CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO |
| 43 | dodoc CONTRIBUTORS LICENSE COPYING* |
47 | dodoc CONTRIBUTORS LICENSE COPYING* |
| 44 | dodoc Change* MANIFEST* README* |
48 | dodoc Change* MANIFEST* README* |