|
Lines 7-15
Link Here
|
| 7 |
PYTHON_DEPEND="2" |
7 |
PYTHON_DEPEND="2" |
| 8 |
SUPPORT_PYTHON_ABIS="1" |
8 |
SUPPORT_PYTHON_ABIS="1" |
| 9 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
9 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
| 10 |
PYTHON_TESTS_FAILURES_TOLERANT_ABIS="2.7-pypy-*" |
|
|
| 11 |
|
10 |
|
| 12 |
inherit distutils eutils |
11 |
inherit distutils eutils |
| 13 |
|
12 |
|
| 14 |
DESCRIPTION="Python refactoring library" |
13 |
DESCRIPTION="Python refactoring library" |
| 15 |
HOMEPAGE="http://rope.sourceforge.net/ http://pypi.python.org/pypi/rope" |
14 |
HOMEPAGE="http://rope.sourceforge.net/ http://pypi.python.org/pypi/rope" |
|
Lines 23-31
Link Here
|
| 23 |
DEPEND="dev-python/setuptools" |
22 |
DEPEND="dev-python/setuptools" |
| 24 |
RDEPEND="" |
23 |
RDEPEND="" |
| 25 |
|
24 |
|
|
|
25 |
src_prepare() { |
| 26 |
distutils_src_prepare |
| 27 |
# copy files to be used by pypy in test phase |
| 28 |
cp -f ropetest/builtinstest.py ropetest/builtinstest.pypy || die |
| 29 |
cp -f ropetest/__init__.py ropetest/__init__.pypy || die |
| 30 |
epatch "${FILESDIR}"/${P}_pypy_test.patch || die |
| 31 |
} |
| 32 |
|
| 26 |
src_test() { |
33 |
src_test() { |
| 27 |
testing() { |
34 |
testing() { |
| 28 |
PYTHONPATH="build-${PYTHON_ABI}/lib:." "$(PYTHON)" ropetest/__init__.py |
35 |
if [[ "${PYTHON_ABI:4:4}" == "pypy" ]]; then |
|
|
36 |
# mv them to orig names |
| 37 |
mv ropetest/builtinstest.pypy ropetest/builtinstest.py || die |
| 38 |
mv ropetest/__init__.pypy ropetest/__init__.py || die |
| 39 |
fi |
| 40 |
PYTHONPATH="build-${PYTHON_ABI}/lib:." "$(PYTHON)" ropetest/__init__.py |
| 41 |
} |
| 29 |
python_execute_function testing |
42 |
python_execute_function testing |
| 30 |
} |
43 |
} |
| 31 |
|
44 |
|