1 |
On 08/11/2020 03:08:16 PM, Mike Gilbert wrote: |
2 |
> On Sun, Aug 2, 2020 at 10:47 AM Helmut Jarausch |
3 |
> <_j_a_r_a_u_s_c_h_@_s_k_y_n_e_t_._b_e> wrote: |
4 |
> Hi, |
5 |
> in an ebuild I have to apply a patch only if this package is |
6 |
> installed |
7 |
> for python3.9. |
8 |
> The ebuild should work for PYTHON_COMPAT=( python3_{8,9} ) |
9 |
> |
10 |
> How can I check for Pythons version in src_prepare or similar |
11 |
> functions. |
12 |
> |
13 |
> Many thanks for a hint, |
14 |
> Helmut |
15 |
> |
16 |
> I would suggest creating a patch that can be applied unconditionally |
17 |
> instead. |
18 |
> |
19 |
|
20 |
That would imply different function definitions within an 'if / else' |
21 |
clause. |
22 |
I don't like this. |