python*-r1.eclass: Commonize PYTHON_COMPAT processing, cache the result
authorMichał Górny <mgorny@gentoo.org>
Sat, 12 Dec 2015 22:06:33 +0000 (23:06 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 22 Dec 2015 22:12:23 +0000 (23:12 +0100)
commit33380ad5e121a47375442de08fd9239b9102b1fa
tree1acd1d623815425130f5a8a6cb44dbd9a6471d27
parentcb425a359834c89f8dd8572d5dfab7e08f01a2a0
python*-r1.eclass: Commonize PYTHON_COMPAT processing, cache the result

Introduce a common _python_set_impls function in python-utils-r1.eclass
that validates and processes PYTHON_COMPAT, then stores the result in
_PYTHON_SUPPORTED_IMPLS and _PYTHON_UNSUPPORTED_IMPLS variables. Reuse
those variables in all python-r1 suite eclasses, effectively reducing
code duplication and providing cache for repeated implementation support
checks.
eclass/python-any-r1.eclass
eclass/python-r1.eclass
eclass/python-single-r1.eclass
eclass/python-utils-r1.eclass