| 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.7 2003/03/06 02:47:50 kutsuya Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.8 2003/03/06 04:14:51 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Jon Nelson <jnelson@gentoo.org> |
5 | # Author: Jon Nelson <jnelson@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # The distutils eclass is designed to allow easier installation of |
7 | # The distutils eclass is designed to allow easier installation of |
| 8 | # distutils-based python modules, and their incorporation into |
8 | # distutils-based python modules, and their incorporation into |
| … | |
… | |
| 16 | # This helps make it possible to add extensions to python slots. |
16 | # This helps make it possible to add extensions to python slots. |
| 17 | if [ "${PYTHON_SLOT_VERSION}" = 2.1 ] ; then |
17 | if [ "${PYTHON_SLOT_VERSION}" = 2.1 ] ; then |
| 18 | newdepend "virtual/python-2.1" |
18 | newdepend "virtual/python-2.1" |
| 19 | python="python2.1" |
19 | python="python2.1" |
| 20 | else |
20 | else |
| 21 | newdepend "virutal/python" |
21 | newdepend "virtual/python" |
| 22 | python="python" |
22 | python="python" |
| 23 | fi |
23 | fi |
| 24 | |
24 | |
| 25 | distutils_src_compile() { |
25 | distutils_src_compile() { |
| 26 | ${python} setup.py build || die "compilation failed" |
26 | ${python} setup.py build || die "compilation failed" |