blob: 0fb920695b7b085fc333e83d30312c46ba0fe3c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# Author: Jon Nelson <jnelson@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.2 2002/08/02 01:44:05 jnelson Exp $
# The distutils eclass is designed to allow easier installation of
# distutils-based python modules, and their incorporation into
# the Gentoo Linux system.
ECLASS=distutils
INHERITED="$INHERITED $ECLASS"
EXPORT_FUNCTIONS src_compile src_install
newdepend "virtual/python"
distutils_src_compile() {
python setup.py build || die "compilation failed"
}
distutils_src_install() {
python setup.py install --root=${D} || die
dodoc CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS
dodoc CONTRIBUTORS LICENSE COPYING*
dodoc Change* MANIFEST* README* ${mydoc}
}
|