1 |
On Mon, 2013-07-01 at 10:25 -0400, Mike Gilbert wrote: |
2 |
> Just some thoughts on this subject; help me fill in any blanks. |
3 |
> |
4 |
> 1. We should do some kind of scan to ensure that any package with |
5 |
> python3_2 in PYTHON_COMPAT also has python3_3. Needs a script. |
6 |
> |
7 |
> 2. Once that is done, we should ensure that any relevant versions are |
8 |
> stabilized. Also needs a script. |
9 |
> |
10 |
> 3. Finally, we can request stabilization of dev-lang/python:3.3 and |
11 |
> remove it from use.stable.mask. |
12 |
> |
13 |
> Does that sound about right? |
14 |
> |
15 |
> Do we have anyone who can help with those scripts? I can take a stab |
16 |
> at it, but I'm a relative newbie when it comes to portage api stuff. |
17 |
> |
18 |
|
19 |
|
20 |
Here is probably most of what you need for api's. Just make your for |
21 |
loops with them. |
22 |
|
23 |
|
24 |
brian@big_daddy ~ $ python |
25 |
Python 2.7.5 (default, Jun 29 2013, 02:44:43) |
26 |
[GCC 4.6.3] on linux2 |
27 |
Type "help", "copyright", "credits" or "license" for more information. |
28 |
>>> import portage |
29 |
>>> p=portage.portdb |
30 |
>>> pkgs=p.cp_all() |
31 |
>>> type(pkgs) |
32 |
<type 'list'> |
33 |
>>> pkgs[0] |
34 |
u'app-accessibility/SphinxTrain' |
35 |
>>> p1=pkgs[0] |
36 |
>>> p.cp_list(p1) |
37 |
[u'app-accessibility/SphinxTrain-0.9.1-r1', u'app-accessibility/SphinxTrain-1.0.8'] |
38 |
>>> v=p.cp_list(p1) |
39 |
>>> p.aux_get(v[0],['IUSE','KEYWORDS']) |
40 |
[u'', u'~amd64 ppc x86'] |
41 |
>>> p.aux_get(v[1],['IUSE','KEYWORDS']) |
42 |
[u'python_targets_python2_7 python_single_target_python2_7', u'amd64 x86'] |
43 |
>>> c=p.aux_get('app-portage/gentoolkit-9999',['IUSE', 'KEYWORDS']) |
44 |
>>> c |
45 |
[u'python_targets_python2_6 python_targets_python2_7 python_targets_python3_1 |
46 |
python_targets_python3_2 python_targets_python3_3 python_targets_pypy1_9', u''] |
47 |
>>> |