| 1 | # Copyright 2002 Gentoo Technologies, Inc. |
1 | # Copyright 2002 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 | # Author: Jon Nelson <jnelson@gentoo.org> |
3 | # Author: Jon Nelson <jnelson@gentoo.org> |
| 4 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.1 2002/08/02 00:46:54 jnelson Exp $ |
4 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.2 2002/08/02 01:44:05 jnelson Exp $ |
| 5 | # The distutils eclass is designed to allow easier installation of |
5 | # The distutils eclass is designed to allow easier installation of |
| 6 | # distutils-based python modules, and their incorporation into |
6 | # distutils-based python modules, and their incorporation into |
| 7 | # the Gentoo Linux system. |
7 | # the Gentoo Linux system. |
| 8 | |
8 | |
| 9 | ECLASS=distutils |
9 | ECLASS=distutils |
| 10 | INHERITED="$INHERITED $ECLASS" |
10 | INHERITED="$INHERITED $ECLASS" |
| 11 | |
11 | |
| 12 | EXPORT_FUNCTIONS src_compile src_install |
12 | EXPORT_FUNCTIONS src_compile src_install |
| 13 | |
13 | |
| 14 | newdepend ">=dev-lang/python" |
14 | newdepend "virtual/python" |
| 15 | |
15 | |
| 16 | distutils_src_compile() { |
16 | distutils_src_compile() { |
| 17 | python setup.py build || die "compilation failed" |
17 | python setup.py build || die "compilation failed" |
| 18 | } |
18 | } |
| 19 | |
19 | |