# 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.2.ebuild,v 1.6 2010/08/15 16:17:36 armin76 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="http://pypi.python.org/packages/source/p/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~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 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" }