blob: 837a0cc7836049076432a4f28158f2b9a736d696 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="3.* *-pypy-* *-jython"
inherit distutils
DESCRIPTION="A Python networking library that uses greenlet to provide synchronous API"
HOMEPAGE="http://pypi.python.org/pypi/gevent/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64"
IUSE=""
LICENSE="MIT"
SLOT="0"
REDEPEND="dev-python/greenlet"
DEPEND="${REDEPEND} dev-python/setuptools"
# More dev friendly notes; This is the ONLY form that works. testrunner.py is made using unittest
# && is designed to be run and import files from the greentest directory.
src_test() {
testing() {
PYTHONPATH=${S}/$(ls -d ./build-$(python_get_version)/lib.linux*-${PYTHON_ABI}):${S}/greentest
pushd greentest > /dev/null
$(PYTHON) -d -m testrunner
popd > /dev/null
}
python_execute_function testing
}
|