/[gentoo-x86]/eclass/distutils.eclass
Gentoo

Contents of /eclass/distutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Feb 16 04:26:21 2003 UTC (11 years, 6 months ago) by vapier
Branch: MAIN
Changes since 1.4: +4 -2 lines
header fixes

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

  ViewVC Help
Powered by ViewVC 1.1.20