# Copyright 2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Author: Anders Bruun Olsen # The python-module eclass is designed to allow easier installation of python # modules, and their incorporation into the Gentoo Linux system. ECLASS=python-module INHERITED="$INHERITED $ECLASS" EXPORT_FUNCTIONS src_compile src_install DEPEND="virtual/python ${DEPEND}" src_compile() { python setup.py build || die "build failed" } src_install () { python setup.py install --prefix=${D}/usr || die "install failed" dodoc COPYRIGHT README* ReleaseNotes }