Lines 7-13
Link Here
|
7 |
SUPPORT_PYTHON_ABIS="1" |
7 |
SUPPORT_PYTHON_ABIS="1" |
8 |
RESTRICT_PYTHON_ABIS="3.*" |
8 |
RESTRICT_PYTHON_ABIS="3.*" |
9 |
|
9 |
|
10 |
inherit distutils |
10 |
inherit distutils eutils |
11 |
|
11 |
|
12 |
DESCRIPTION="Stateful programmatic web browsing in Python" |
12 |
DESCRIPTION="Stateful programmatic web browsing in Python" |
13 |
HOMEPAGE="http://wwwsearch.sourceforge.net/mechanize/ http://pypi.python.org/pypi/mechanize" |
13 |
HOMEPAGE="http://wwwsearch.sourceforge.net/mechanize/ http://pypi.python.org/pypi/mechanize" |
Lines 23-30
Link Here
|
23 |
|
23 |
|
24 |
DOCS="docs/*.txt" |
24 |
DOCS="docs/*.txt" |
25 |
|
25 |
|
|
|
26 |
src_prepare() { |
27 |
cp -f test/test_unittest.py test/test_unittest.pyy |
28 |
epatch "${FILESDIR}"/${PN}-pypy_test.patch \ |
29 |
"${FILESDIR}"/${P}-doctest.patch |
30 |
} |
31 |
|
26 |
src_test() { |
32 |
src_test() { |
27 |
testing() { |
33 |
testing() { |
|
|
34 |
# Ignore warnings (http://github.com/jjlee/mechanize/issues/issue/13). |
35 |
local path="${S}/build-${PYTHON_ABI}/lib/" |
36 |
if [[ "${PYTHON_ABI:4:4}" == "pypy" ]]; then |
37 |
cp test/test_unittest.pyy test/test_unittest.py || die |
38 |
fi |
28 |
PYTHONPATH=$path "$(PYTHON)" -W ignore test.py |
39 |
PYTHONPATH=$path "$(PYTHON)" -W ignore test.py |
29 |
} |
40 |
} |
30 |
python_execute_function testing |
41 |
python_execute_function testing |