1 |
On 27/02/2016 22:16, Nikos Chantziaras wrote: |
2 |
> On 27/02/16 21:40, Alan McKinnon wrote: |
3 |
>> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all |
4 |
>> seemed to just work so I never looked further. Until now. Of all |
5 |
>> packages, libreoffice seems to want only python3: |
6 |
>> |
7 |
>> I can set it in make.conf but as expected that causes all manner of |
8 |
>> other packages to fail emerge checks as they need python2.7. |
9 |
>> |
10 |
>> What's the preferred way to deal with this situation? |
11 |
> |
12 |
> PYTHON_TARGETS="python2_7 python3_4" |
13 |
> PYTHON_SINGLE_TARGET="python3_4" |
14 |
> |
15 |
> For packages that require another PYTHON_SINGLE_TARGET version, you can |
16 |
> set "python_single_target_python2_7" in package.use. For example: |
17 |
> |
18 |
> app-text/asciidoc python_single_target_python2_7 |
19 |
> |
20 |
> The reverse is also true. You can set: |
21 |
> |
22 |
> PYTHON_SINGLE_TARGET="python2_7" |
23 |
> |
24 |
> in make.conf, and then set "python_single_target_python3_4" in |
25 |
> package.use for packages that require 3.4: |
26 |
> |
27 |
> app-office/libreoffice python_single_target_python3_4 |
28 |
> |
29 |
> I use the first method. |
30 |
> |
31 |
> Yes, it's a PITA :-) |
32 |
|
33 |
I'll say. |
34 |
|
35 |
Just got another one - sigil. That fails at build time, not at |
36 |
emerge-initial-check-stuff time. So no problem I thought, I'll tweak |
37 |
that one too. Now that causes 20 packages in dev-python like eg pillow, |
38 |
six, etc to want the same tweak. And boost. |
39 |
|
40 |
I have free time, I'll experiment with those now. I just hope it doesn't |
41 |
break everything else using those packages |
42 |
|
43 |
|
44 |
|
45 |
> PS: |
46 |
> Another syntax is also available for package.use: |
47 |
> |
48 |
> app-text/asciidoc <other USE flags> PYTHON_SINGLE_TARGET: python2_7 |
49 |
> |
50 |
> Just saw a blog post about it; I think it's undocumented and works for |
51 |
> all USE_EXPAND flags. The downside is that it has to appear at the end |
52 |
> of the line. |
53 |
> |
54 |
> |
55 |
|
56 |
|
57 |
-- |
58 |
Alan McKinnon |
59 |
alan.mckinnon@×××××.com |