summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-10-09 15:37:57 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-10-09 15:37:57 +0000
commitc0ecf22dfae5521c22d895633ed88a032aaa481c (patch)
tree8a6663d40fff9cfa768ef374444b98087081bbe8 /eclass
parentFirst commit (diff)
downloadgentoo-2-c0ecf22dfae5521c22d895633ed88a032aaa481c.tar.gz
gentoo-2-c0ecf22dfae5521c22d895633ed88a032aaa481c.tar.bz2
gentoo-2-c0ecf22dfae5521c22d895633ed88a032aaa481c.zip
removing pkg_postinst/rm() until i have a complete implementation
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils.eclass18
1 files changed, 7 insertions, 11 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass
index 52901df902c2..1a1170c4fd2e 100644
--- a/eclass/distutils.eclass
+++ b/eclass/distutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.17 2003/10/09 15:11:24 liquidx Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.18 2003/10/09 15:37:57 liquidx Exp $
#
# Author: Jon Nelson <jnelson@gentoo.org>
# Current Maintainer: Alastair Tse <liquidx@gentoo.org>
@@ -39,7 +39,11 @@ distutils_src_compile() {
}
distutils_src_install() {
- ${python} setup.py install --root=${D} --no-compile "$@" || die
+ if has_version ">=dev-lang/python-2.3"; then
+ ${python} setup.py install --root=${D} --no-compile "$@" || die
+ else
+ ${python} setup.py install --root=${D} "$@" || die
+ fi
dodoc CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO
dodoc CONTRIBUTORS LICENSE COPYING*
@@ -51,14 +55,6 @@ distutils_src_install() {
[ -n "${mydoc}" ] && dodoc ${mydoc}
}
-distutils_pkg_postrm() {
- python_mod_cleanup
-}
-
-distutils_pkg_postinst() {
- python_mod_optimize
-}
-
# e.g. insinto ${ROOT}/usr/include/python${PYVER}
distutils_python_version() {
@@ -82,5 +78,5 @@ distutils_python_tkinter() {
}
-EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
+EXPORT_FUNCTIONS src_compile src_install