1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
14 DESCRIPTION="Memory profiling for Python applications"
15 HOMEPAGE="https://code.google.com/p/pympler/ https://pypi.python.org/pypi/Pympler https://github.com/pympler/pympler"
16 SRC_URI="mirror://pypi/P/${MY_PN}/${MY_P}.tar.gz"
20 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
23 RDEPEND="dev-python/bottle[${PYTHON_USEDEP}]"
24 DEPEND="test? ( ${RDEPEND} )"
26 S="${WORKDIR}"/${MY_P}
28 python_prepare_all() {
29 rm pympler/util/bottle.py || die
31 -e '/import bottle/s:^.*$:import bottle:g' \
32 -i pympler/web.py || die
33 distutils-r1_python_prepare_all
37 # https://github.com/pympler/pympler/issues/22
41 python_install_all() {
42 use doc && local HTML_DOCS=( doc/html/. )
43 distutils-r1_python_install_all