1 |
On Sun, 2021-06-20 at 14:48 +0200, Ulrich Mueller wrote: |
2 |
> > > > > > On Sun, 20 Jun 2021, Michał Górny wrote: |
3 |
> |
4 |
> > @@ -712,8 +714,13 @@ python_newexe() { |
5 |
> > ) |
6 |
> > |
7 |
> > # install the wrapper |
8 |
> > - _python_ln_rel "${ED%/}"/usr/lib/python-exec/python-exec2 \ |
9 |
> > - "${ED%/}/${wrapd}/${newfn}" || die |
10 |
> > + if [[ ${EAPI} != [67] ]]; then |
11 |
> > + dosym -r /usr/lib/python-exec/python-exec2 \ |
12 |
> > + "${wrapd}/${newfn}" |
13 |
> > + else |
14 |
> > + _python_ln_rel "${ED%/}"/usr/lib/python- |
15 |
> > exec/python-exec2 \ |
16 |
> > + "${ED%/}/${wrapd}/${newfn}" || die |
17 |
> > + fi |
18 |
> |
19 |
> Wouldn't it be cleaner to inherit eapi8-dosym.eclass in EAPIs 6 and 7 |
20 |
> instead? Then dosym -r could be used unconditionally, and function |
21 |
> _python_ln_rel could be dropped altogether? |
22 |
> |
23 |
> Same for python-r1.eclass (patch 20/28) and distutils-r1.eclass |
24 |
> (patch 27/28). |
25 |
|
26 |
Hmm, I suppose that makes sense. Thanks! |
27 |
|
28 |
-- |
29 |
Best regards, |
30 |
Michał Górny |