# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/py/py-1.3.4.ebuild,v 1.9 2010/12/27 20:58:52 ranger Exp $ EAPI="3" SUPPORT_PYTHON_ABIS="1" inherit distutils DESCRIPTION="A library aiming to support agile and test-driven python development on various levels." HOMEPAGE="http://codespeak.net/py/ http://pypi.python.org/pypi/py" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="" DEPEND="dev-python/setuptools" RDEPEND="${DEPEND}" src_prepare() { distutils_src_prepare # Disable versioning of py.test and py.which scripts to avoid collisions with versioning performed by distutils_src_install(). sed -e "77a\ points = {}" -i setup.py # Disable failing tests. rm -f testing/path/test_svnwc.py } src_test() { testing() { PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" bin/py.test # Ignore test failures. : } python_execute_function testing } src_install() { distutils_src_install python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/py.test" }