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

Diff of /eclass/distutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.15 Revision 1.16
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
22inherit python
23
22ECLASS=distutils 24ECLASS=distutils
23INHERITED="$INHERITED $ECLASS" 25INHERITED="$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"
33fi 35fi
34 36
35distutils_src_compile() { 37distutils_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
39distutils_src_install() { 42distutils_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*

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20