python-utils-r1.eclass: Allow -2/-3 as impl-patterns for py2/py3
authorMichał Górny <mgorny@gentoo.org>
Wed, 10 May 2017 18:37:50 +0000 (20:37 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 16 May 2017 17:11:37 +0000 (19:11 +0200)
commit392ff44ddb98f0cb1eadfb35d089fc35fe732547
tree8aa3ad18b3f284316a70df684ddeb25eb0509089
parentf6bea5ce22082c40e68b5c240486d0dbc9024298
python-utils-r1.eclass: Allow -2/-3 as impl-patterns for py2/py3

Allow two special values in the implementation patterns for
_python_impl_matches(): -2 to indicate all Python 2-compatible
implementations, and -3 to indicate all Python 3-compatible
implementations. Both of those values are implemented using
the python_is_python3 function.

This is mostly meant to make it easier and more fool-proof to write
dependencies on backports to Python 2 which in most cases apply to PyPy2
as well.
eclass/python-utils-r1.eclass