diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-29 21:17:21 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-29 21:17:21 +0000 |
commit | 5b0033139d39b0a9d5a8ee68867a9b7d2e77cfbc (patch) | |
tree | 0f23b900acb820cd94fee7bd7cc67fe30b6d2d63 /dev-python/asciitable/asciitable-0.3.1.ebuild | |
parent | Version bump. Translation updates. Update API use. (diff) | |
download | gentoo-2-5b0033139d39b0a9d5a8ee68867a9b7d2e77cfbc.tar.gz gentoo-2-5b0033139d39b0a9d5a8ee68867a9b7d2e77cfbc.tar.bz2 gentoo-2-5b0033139d39b0a9d5a8ee68867a9b7d2e77cfbc.zip |
Disable tests with Python 3.
(Portage version: 2.2_rc88_p40/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/asciitable/asciitable-0.3.1.ebuild')
-rw-r--r-- | dev-python/asciitable/asciitable-0.3.1.ebuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/dev-python/asciitable/asciitable-0.3.1.ebuild b/dev-python/asciitable/asciitable-0.3.1.ebuild index c2505aded96b..8d7689805dd0 100644 --- a/dev-python/asciitable/asciitable-0.3.1.ebuild +++ b/dev-python/asciitable/asciitable-0.3.1.ebuild @@ -1,12 +1,9 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/asciitable/asciitable-0.3.1.ebuild,v 1.1 2010/09/29 05:56:16 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/asciitable/asciitable-0.3.1.ebuild,v 1.2 2010/09/29 21:17:21 arfrever Exp $ EAPI="3" -#PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" -#RESTRICT_PYTHON_ABIS="3.*" -DISTUTILS_SRC_TEST="nosetests" inherit distutils @@ -17,9 +14,18 @@ SRC_URI="${HOMEPAGE}/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" -DEPEND="dev-python/numpy" -RDEPEND="${DEPEND}" +RDEPEND="dev-python/numpy" +DEPEND="${RDEPEND} + test? ( dev-python/nose )" PYTHON_MODNAME="asciitable.py" + +src_test() { + testing() { + [[ "${PYTHON_ABI}" == 3.* ]] && return + PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests + } + python_execute_function testing +} |