summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-08-14 21:01:01 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-08-14 21:01:01 +0000
commit11870a88dcb911acdc430434e0e4cea07dc24884 (patch)
tree3fbcfb6b4e422c2ae1e37364b304233e8dfa00e5 /eclass
parentversion bump (diff)
downloadgentoo-2-11870a88dcb911acdc430434e0e4cea07dc24884.tar.gz
gentoo-2-11870a88dcb911acdc430434e0e4cea07dc24884.tar.bz2
gentoo-2-11870a88dcb911acdc430434e0e4cea07dc24884.zip
Adding python 2.5 workaround for cases where a package does not install anything.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass
index 7f771c416b2d..5b5f65d5111c 100644
--- a/eclass/distutils.eclass
+++ b/eclass/distutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.32 2006/08/07 00:21:49 liquidx Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.33 2006/08/14 21:01:01 liquidx Exp $
#
# Author: Jon Nelson <jnelson@gentoo.org>
# Current Maintainer: Alastair Tse <liquidx@gentoo.org>
@@ -39,6 +39,14 @@ distutils_src_compile() {
}
distutils_src_install() {
+
+ # need this for python-2.5 + setuptools in cases where
+ # a package uses distutils but does not install anything
+ # in site-packages. (eg. dev-java/java-config-2.x)
+ # - liquidx (14/08/2006)
+ pylibdir="$(${python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')"
+ [ -n "${pylibdir}" ] && dodir "${pylibdir}"
+
if has_version ">=dev-lang/python-2.3"; then
${python} setup.py install --root=${D} --no-compile "$@" || die
else