You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/virtualenvwrapper/virtualenvwrapper-3.0.1.ebuild

41 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/virtualenvwrapper/virtualenvwrapper-3.0.1.ebuild,v 1.2 2012/03/15 17:40:27 patrick Exp $
EAPI=4
PYTHON_DEPEND="2:2.6 3:3.1"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.5 *-jython 2.7-pypy-*"
inherit distutils python
DESCRIPTION="virtualenvwrapper is a set of extensions to Ian Bicking's virtualenv tool"
HOMEPAGE="http://www.doughellmann.com/projects/virtualenvwrapper http://pypi.python.org/pypi/virtualenvwrapper"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="dev-python/virtualenv"
DEPEND="${DEPEND}
dev-python/setuptools
test? ( dev-python/tox )"
src_prepare() {
sed -e 's:-o shwordsplit::' -i tests/run_tests || die
}
src_test() {
testing() {
PYTHON_MAJOR="$(python_get_version --major)"
PYTHON_MINOR="$(python_get_version --minor)"
cp "${FILESDIR}/tox.ini" .
export TMPDIR=${T}
tox -e py${PYTHON_MAJOR}${PYTHON_MINOR} tests/test_cp.sh
}
python_execute_function testing
}