1 |
On Sun, Oct 20, 2013 at 11:47 AM, Michał Górny <mgorny@g.o> wrote: |
2 |
> Dnia 2013-10-20, o godz. 11:33:45 |
3 |
> Mike Gilbert <floppym@g.o> napisał(a): |
4 |
> |
5 |
>> On Sun, Oct 20, 2013 at 11:12 AM, Michał Górny <mgorny@g.o> wrote: |
6 |
>> > Dnia 2013-10-20, o godz. 10:53:34 |
7 |
>> > Mike Gilbert <floppym@g.o> napisał(a): |
8 |
>> > |
9 |
>> >> On Sun, Oct 20, 2013 at 3:36 AM, Michał Górny <mgorny@g.o> wrote: |
10 |
>> >> > As described in the ml, the new function does: |
11 |
>> >> > |
12 |
>> >> > * in python-any-r1, choose and set up the best installed impl, |
13 |
>> >> > |
14 |
>> >> > * in python-single-r1, read PYTHON_SINGLE_TARGET and set it up, |
15 |
>> >> > |
16 |
>> >> > * in python-r1, call python_export_best + python_wrapper_setup. |
17 |
>> >> > |
18 |
>> >> > In other words, it's a common way of getting Python build environment |
19 |
>> >> > set up in the ebuild scope. |
20 |
>> >> |
21 |
>> >> Invoking python_setup from pkg_setup in any eclass seems sub-optimal; |
22 |
>> >> especially so in python-any-r1. However, I realize there isn't a great |
23 |
>> >> place to put it. |
24 |
>> > |
25 |
>> > I don't understand. Could you rephrase? |
26 |
>> > |
27 |
>> |
28 |
>> The python stuff is generally only used in "src" phases, so pkg_setup |
29 |
>> is the wrong place for it.. As well, it would be better to set up the |
30 |
>> python wrappers and environment in a phase where the sandbox and |
31 |
>> userpriv are active to prevent permissions problems like we had with |
32 |
>> Paludis recently (there's a bug, but I'm not going to look for it). |
33 |
> |
34 |
> I can understand you but can't really think of a good way of doing |
35 |
> this. The only other reasonable phase for this is src_prepare(), |
36 |
> and overriding it will result in hell breaking loose... |
37 |
> |
38 |
|
39 |
Right. I just wanted to go "on the record" as saying that this is not |
40 |
optimal, but there is probably no better alternative. Carry on. ^_^ |