distutils-r1.eclass: Reuse python_setup for common phases
authorMichał Górny <mgorny@gentoo.org>
Sat, 20 May 2017 09:48:29 +0000 (11:48 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 29 May 2017 21:53:37 +0000 (23:53 +0200)
commit452f2b21a8c0c4e51006440cc7c4e680e8f4bea5
treea4240776c13a60a3e5940417d2bf184e79d93db6
parentb003a0e3df0d7e65a9123bf3d723bd8f9aef7f4e
distutils-r1.eclass: Reuse python_setup for common phases

Rewrite the python_*_all() phase running code to reuse python_setup
instead of hacking on top of python_foreach_impl. The resulting code
is a bit simpler but most importantly, it avoids duplication of code
from python-r1 and ensures that distutils-r1 common phases are directly
altered by changes in python_setup.

The code still needs to reimplement some of the internals. However, it
is mostly limited to code specific to distutils-r1, and should be more
maintainable.
eclass/distutils-r1.eclass