1 |
Hi, |
2 |
|
3 |
Sebastian Pipping <sping@g.o>: |
4 |
> On 11/29/10 13:10, Christian Faulhammer wrote: |
5 |
> > $ eselect python --help |
6 |
> > Manage Python symlinks |
7 |
> > Usage: eselect python <action> <options> |
8 |
> > |
9 |
> > [...] |
10 |
> > update Switch to the most recent CPython |
11 |
> > interpreter --if-unset Do not override existing |
12 |
> > implementation --ignore SLOT Ignore SLOT when setting |
13 |
> > symlinks --python2 Set active Python 2 interpreter |
14 |
> > without setting of main active Python interpreter if it is not set |
15 |
> > to Python 2 --python3 Set active Python 3 |
16 |
> > interpreter without setting of main active Python interpreter if it |
17 |
> > is not set to Python 3 |
18 |
> > |
19 |
> > See the --if-unset option. |
20 |
> |
21 |
> I see, thanks. |
22 |
> |
23 |
> What I would now like to call from the ebuild is |
24 |
> |
25 |
> eselect python set --if-unset ${SLOT} |
26 |
> |
27 |
> Problem is .. |
28 |
> * action "set" wants and index, not a slot |
29 |
|
30 |
The Python eselect module can take python${SLOT} as argument for set. |
31 |
|
32 |
> * --if-unset works with update only |
33 |
|
34 |
At least for the Emacs eselect module update works like set if |
35 |
--if-unset is given. So Python 2.6 has to be merged first to set it to |
36 |
python2.6 executable, then all subsequent calls from newer Python |
37 |
ebuilds (like 3.1) will not change the setting. |
38 |
|
39 |
V-Li |
40 |
|
41 |
-- |
42 |
Christian Faulhammer, Gentoo Lisp project |
43 |
<URL:http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode |
44 |
|
45 |
<URL:http://gentoo.faulhammer.org/> |