1 |
On sob, 2017-05-20 at 10:56 +0200, Michał Górny wrote: |
2 |
> Hi, |
3 |
> |
4 |
> Here's a quick set of minor patches to python-r1 suite. It mostly |
5 |
> includes some fixes to issues I've noticed while working on something |
6 |
> bigger ;-). |
7 |
> |
8 |
> The first patch merely fixes missing 'local' for a variable. The second |
9 |
> adds REQUIRED_USE to the python_setup() use example in python-r1. |
10 |
> The third converts distutils-r1 common impl support to use the new |
11 |
> pattern matching function (which is an omission from the original set |
12 |
> of patches). |
13 |
> |
14 |
> The fourth patch is most interesting of all -- it makes the pattern |
15 |
> matching work well with mismatched PYTHON_COMPAT/EPYTHON-style impls. |
16 |
> This makes the API more lax, and avoids requiring users to be aware |
17 |
> of technically implied impl style restrictions, i.e. having to write: |
18 |
> |
19 |
> REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2_*') ) )" |
20 |
> |
21 |
> src_compile() { |
22 |
> use doc && python_setup 'python2.*' |
23 |
> } |
24 |
> |
25 |
> Note that flags used PYTHON_COMPAT form (with '_') while setup functions |
26 |
> used EPYTHON form (with '.'). Now both are equally happy with both |
27 |
> forms. |
28 |
> |
29 |
|
30 |
Merged them a while back. |
31 |
|
32 |
-- |
33 |
Best regards, |
34 |
Michał Górny |