* [gentoo-user] Python update question
@ 2012-03-02 11:36 Dale
2012-03-02 11:42 ` Dale
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Dale @ 2012-03-02 11:36 UTC (permalink / raw
To: gentoo-user
Howdy,
I'm just wanting to make certain I don't break my rig. Info first:
root@fireball / # eselect python list
Available Python interpreters:
[1] python2.7 *
[2] python3.1
[3] python3.2
root@fireball / #
I ran --depclean and it wants to remove python 3.1. I ran python
updater and recompiled the needed packages. Since python 2.7 is the
default python, is it safe to remove python 3.1? As we all know, python
and portage is really good friends and portage gets real upset when it
looses its friend. I'd much rather ask this question than have to start
a thread on how to repair python with a dead portage.
So, safe to remove? I'm thinking it is but just want the comfort of
taking someone else with me it is breaks. lol
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 11:36 [gentoo-user] Python update question Dale
@ 2012-03-02 11:42 ` Dale
2012-03-02 12:42 ` Alex Schuster
2012-03-02 14:28 ` Mark Knecht
2 siblings, 0 replies; 13+ messages in thread
From: Dale @ 2012-03-02 11:42 UTC (permalink / raw
To: gentoo-user
Dale wrote:
> Howdy,
>
> I'm just wanting to make certain I don't break my rig. Info first:
>
> root@fireball / # eselect python list
> Available Python interpreters:
> [1] python2.7 *
> [2] python3.1
> [3] python3.2
> root@fireball / #
>
> I ran --depclean and it wants to remove python 3.1. I ran python
> updater and recompiled the needed packages. Since python 2.7 is the
> default python, is it safe to remove python 3.1? As we all know, python
> and portage is really good friends and portage gets real upset when it
> looses its friend. I'd much rather ask this question than have to start
> a thread on how to repair python with a dead portage.
>
> So, safe to remove? I'm thinking it is but just want the comfort of
> taking someone else with me it is breaks. lol
>
> Dale
>
> :-) :-)
>
I really need to not post when I take my meds. lol The last line
should read "* someone else with me if it breaks."
Meds. They help some things but hurt other things. o_O
Thanks.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 11:36 [gentoo-user] Python update question Dale
2012-03-02 11:42 ` Dale
@ 2012-03-02 12:42 ` Alex Schuster
2012-03-02 13:12 ` Dale
2012-03-02 14:28 ` Mark Knecht
2 siblings, 1 reply; 13+ messages in thread
From: Alex Schuster @ 2012-03-02 12:42 UTC (permalink / raw
To: gentoo-user
Dale writes:
> root@fireball / # eselect python list
> Available Python interpreters:
> [1] python2.7 *
> [2] python3.1
> [3] python3.2
> root@fireball / #
>
> I ran --depclean and it wants to remove python 3.1. I ran python
> updater and recompiled the needed packages. Since python 2.7 is the
> default python, is it safe to remove python 3.1? As we all know, python
> and portage is really good friends and portage gets real upset when it
> looses its friend. I'd much rather ask this question than have to start
> a thread on how to repair python with a dead portage.
>
> So, safe to remove? I'm thinking it is but just want the comfort of
> taking someone else with me it is breaks. lol
It's safe, your portage uses 2.7.
Wonko
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 12:42 ` Alex Schuster
@ 2012-03-02 13:12 ` Dale
0 siblings, 0 replies; 13+ messages in thread
From: Dale @ 2012-03-02 13:12 UTC (permalink / raw
To: gentoo-user
Alex Schuster wrote:
> Dale writes:
>
>> root@fireball / # eselect python list
>> Available Python interpreters:
>> [1] python2.7 *
>> [2] python3.1
>> [3] python3.2
>> root@fireball / #
>>
>> I ran --depclean and it wants to remove python 3.1. I ran python
>> updater and recompiled the needed packages. Since python 2.7 is the
>> default python, is it safe to remove python 3.1? As we all know, python
>> and portage is really good friends and portage gets real upset when it
>> looses its friend. I'd much rather ask this question than have to start
>> a thread on how to repair python with a dead portage.
>>
>> So, safe to remove? I'm thinking it is but just want the comfort of
>> taking someone else with me it is breaks. lol
>
> It's safe, your portage uses 2.7.
>
> Wonko
>
>
Thanks for the confirmation. I was thinking it was but wanted to double
check.
Thanks again.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 11:36 [gentoo-user] Python update question Dale
2012-03-02 11:42 ` Dale
2012-03-02 12:42 ` Alex Schuster
@ 2012-03-02 14:28 ` Mark Knecht
2012-03-02 18:09 ` Tanstaafl
2012-03-02 18:20 ` Dale
2 siblings, 2 replies; 13+ messages in thread
From: Mark Knecht @ 2012-03-02 14:28 UTC (permalink / raw
To: gentoo-user
On Fri, Mar 2, 2012 at 3:36 AM, Dale <rdalek1967@gmail.com> wrote:
> Howdy,
>
> I'm just wanting to make certain I don't break my rig. Info first:
>
> root@fireball / # eselect python list
> Available Python interpreters:
> [1] python2.7 *
> [2] python3.1
> [3] python3.2
> root@fireball / #
>
> I ran --depclean and it wants to remove python 3.1. I ran python
> updater and recompiled the needed packages. Since python 2.7 is the
> default python, is it safe to remove python 3.1? As we all know, python
> and portage is really good friends and portage gets real upset when it
> looses its friend. I'd much rather ask this question than have to start
> a thread on how to repair python with a dead portage.
>
> So, safe to remove? I'm thinking it is but just want the comfort of
> taking someone else with me it is breaks. lol
>
> Dale
>
You should be safe but please do an
eselect python list --python3
and make sure you're set to 3.2 before removing 3.1.
HTH,
Mark
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 14:28 ` Mark Knecht
@ 2012-03-02 18:09 ` Tanstaafl
2012-03-02 18:20 ` Dale
1 sibling, 0 replies; 13+ messages in thread
From: Tanstaafl @ 2012-03-02 18:09 UTC (permalink / raw
To: gentoo-user
On 2012-03-02 9:28 AM, Mark Knecht <markknecht@gmail.com> wrote:
> eselect python list --python3
>
> and make sure you're set to 3.2 before removing 3.1.
Hmmm... mine shows it is set to 3.1...
# eselect python list --python3
Available Python 3 interpreters:
[1] python3.1 *
[2] python3.2
myhost : Fri Mar 02, 13:07:51 : ~
#
So, that would be
eselect python set --python3 2
to set it to 3.2 leaving 2.7 as the main active python, right?
Just making sure because I know that mucking up python is *not* a
problem I want to have to deal with...
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 14:28 ` Mark Knecht
2012-03-02 18:09 ` Tanstaafl
@ 2012-03-02 18:20 ` Dale
2012-03-02 18:59 ` Mark Knecht
1 sibling, 1 reply; 13+ messages in thread
From: Dale @ 2012-03-02 18:20 UTC (permalink / raw
To: gentoo-user
Mark Knecht wrote:
> On Fri, Mar 2, 2012 at 3:36 AM, Dale <rdalek1967@gmail.com> wrote:
>> Howdy,
>>
>> I'm just wanting to make certain I don't break my rig. Info first:
>>
>> root@fireball / # eselect python list
>> Available Python interpreters:
>> [1] python2.7 *
>> [2] python3.1
>> [3] python3.2
>> root@fireball / #
>>
>> I ran --depclean and it wants to remove python 3.1. I ran python
>> updater and recompiled the needed packages. Since python 2.7 is the
>> default python, is it safe to remove python 3.1? As we all know, python
>> and portage is really good friends and portage gets real upset when it
>> looses its friend. I'd much rather ask this question than have to start
>> a thread on how to repair python with a dead portage.
>>
>> So, safe to remove? I'm thinking it is but just want the comfort of
>> taking someone else with me it is breaks. lol
>>
>> Dale
>>
>
> You should be safe but please do an
>
> eselect python list --python3
>
> and make sure you're set to 3.2 before removing 3.1.
>
> HTH,
> Mark
>
>
Last I heard we are not supposed to set python to 3 anything. Has that
changed?
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 18:20 ` Dale
@ 2012-03-02 18:59 ` Mark Knecht
2012-03-02 19:24 ` Dale
0 siblings, 1 reply; 13+ messages in thread
From: Mark Knecht @ 2012-03-02 18:59 UTC (permalink / raw
To: gentoo-user
On Fri, Mar 2, 2012 at 10:20 AM, Dale <rdalek1967@gmail.com> wrote:
> Mark Knecht wrote:
>> On Fri, Mar 2, 2012 at 3:36 AM, Dale <rdalek1967@gmail.com> wrote:
>>> Howdy,
>>>
>>> I'm just wanting to make certain I don't break my rig. Info first:
>>>
>>> root@fireball / # eselect python list
>>> Available Python interpreters:
>>> [1] python2.7 *
>>> [2] python3.1
>>> [3] python3.2
>>> root@fireball / #
>>>
>>> I ran --depclean and it wants to remove python 3.1. I ran python
>>> updater and recompiled the needed packages. Since python 2.7 is the
>>> default python, is it safe to remove python 3.1? As we all know, python
>>> and portage is really good friends and portage gets real upset when it
>>> looses its friend. I'd much rather ask this question than have to start
>>> a thread on how to repair python with a dead portage.
>>>
>>> So, safe to remove? I'm thinking it is but just want the comfort of
>>> taking someone else with me it is breaks. lol
>>>
>>> Dale
>>>
>>
>> You should be safe but please do an
>>
>> eselect python list --python3
>>
>> and make sure you're set to 3.2 before removing 3.1.
>>
>> HTH,
>> Mark
>>
>>
>
>
> Last I heard we are not supposed to set python to 3 anything. Has that
> changed?
>
> Dale
>
No, we're not supposed to set the *system* *default* to python3 yet.
Still, if you have multiple 3.x versions installed you would want to
set the python3 setting to the python version you want to default to
should some program absolutely require python3, so we've got 3 real
settings:
System default - still python-2.x
Python2 - same python-2.x version as the system default
Python3 - what ever version you want for programs requiring Python3
HTH,
Mark
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 18:59 ` Mark Knecht
@ 2012-03-02 19:24 ` Dale
2012-03-02 19:30 ` Tanstaafl
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Dale @ 2012-03-02 19:24 UTC (permalink / raw
To: gentoo-user
Mark Knecht wrote:
> On Fri, Mar 2, 2012 at 10:20 AM, Dale <rdalek1967@gmail.com> wrote:
>> Mark Knecht wrote:
>>> On Fri, Mar 2, 2012 at 3:36 AM, Dale <rdalek1967@gmail.com> wrote:
>>>> Howdy,
>>>>
>>>> I'm just wanting to make certain I don't break my rig. Info first:
>>>>
>>>> root@fireball / # eselect python list
>>>> Available Python interpreters:
>>>> [1] python2.7 *
>>>> [2] python3.1
>>>> [3] python3.2
>>>> root@fireball / #
>>>>
>>>> I ran --depclean and it wants to remove python 3.1. I ran python
>>>> updater and recompiled the needed packages. Since python 2.7 is the
>>>> default python, is it safe to remove python 3.1? As we all know, python
>>>> and portage is really good friends and portage gets real upset when it
>>>> looses its friend. I'd much rather ask this question than have to start
>>>> a thread on how to repair python with a dead portage.
>>>>
>>>> So, safe to remove? I'm thinking it is but just want the comfort of
>>>> taking someone else with me it is breaks. lol
>>>>
>>>> Dale
>>>>
>>>
>>> You should be safe but please do an
>>>
>>> eselect python list --python3
>>>
>>> and make sure you're set to 3.2 before removing 3.1.
>>>
>>> HTH,
>>> Mark
>>>
>>>
>>
>>
>> Last I heard we are not supposed to set python to 3 anything. Has that
>> changed?
>>
>> Dale
>>
>
> No, we're not supposed to set the *system* *default* to python3 yet.
> Still, if you have multiple 3.x versions installed you would want to
> set the python3 setting to the python version you want to default to
> should some program absolutely require python3, so we've got 3 real
> settings:
>
> System default - still python-2.x
> Python2 - same python-2.x version as the system default
> Python3 - what ever version you want for programs requiring Python3
>
> HTH,
> Mark
>
>
But if I tell eselect to set it to 3 something then that is what the
system will try to use right? Isn't that what eselect does? I'm
recalling what was posted after you emerge python here. The einfo/ewarn
thingy.
Again, this may have changed but what I'm wondering is if we need the
python 2 stuff any more if we can set this to python 3. After all,
python 2 has to die eventually. ^_^
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 19:24 ` Dale
@ 2012-03-02 19:30 ` Tanstaafl
2012-03-02 21:47 ` Mark Knecht
2012-03-02 22:49 ` [gentoo-user] " walt
2 siblings, 0 replies; 13+ messages in thread
From: Tanstaafl @ 2012-03-02 19:30 UTC (permalink / raw
To: gentoo-user
On 2012-03-02 2:24 PM, Dale <rdalek1967@gmail.com> wrote:
> But if I tell eselect to set it to 3 something then that is what the
> system will try to use right? Isn't that what eselect does? I'm
> recalling what was posted after you emerge python here. The einfo/ewarn
> thingy.
>
> Again, this may have changed but what I'm wondering is if we need the
> python 2 stuff any more if we can set this to python 3. After all,
> python 2 has to die eventually. ^_^
did you miss my earlier reply?
Mine also shows it is set to 3.1...
# eselect python list --python3
Available Python 3 interpreters:
[1] python3.1 *
[2] python3.2
myhost : Fri Mar 02, 13:07:51 : ~
#
So, that I'm guessing the correct way to do this is:
eselect python set --python3 2
?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 19:24 ` Dale
2012-03-02 19:30 ` Tanstaafl
@ 2012-03-02 21:47 ` Mark Knecht
2012-03-03 3:37 ` Dale
2012-03-02 22:49 ` [gentoo-user] " walt
2 siblings, 1 reply; 13+ messages in thread
From: Mark Knecht @ 2012-03-02 21:47 UTC (permalink / raw
To: gentoo-user
On Fri, Mar 2, 2012 at 11:24 AM, Dale <rdalek1967@gmail.com> wrote:
> Mark Knecht wrote:
>> On Fri, Mar 2, 2012 at 10:20 AM, Dale <rdalek1967@gmail.com> wrote:
>>> Mark Knecht wrote:
>>>> On Fri, Mar 2, 2012 at 3:36 AM, Dale <rdalek1967@gmail.com> wrote:
>>>>> Howdy,
>>>>>
>>>>> I'm just wanting to make certain I don't break my rig. Info first:
>>>>>
>>>>> root@fireball / # eselect python list
>>>>> Available Python interpreters:
>>>>> [1] python2.7 *
>>>>> [2] python3.1
>>>>> [3] python3.2
>>>>> root@fireball / #
>>>>>
>>>>> I ran --depclean and it wants to remove python 3.1. I ran python
>>>>> updater and recompiled the needed packages. Since python 2.7 is the
>>>>> default python, is it safe to remove python 3.1? As we all know, python
>>>>> and portage is really good friends and portage gets real upset when it
>>>>> looses its friend. I'd much rather ask this question than have to start
>>>>> a thread on how to repair python with a dead portage.
>>>>>
>>>>> So, safe to remove? I'm thinking it is but just want the comfort of
>>>>> taking someone else with me it is breaks. lol
>>>>>
>>>>> Dale
>>>>>
>>>>
>>>> You should be safe but please do an
>>>>
>>>> eselect python list --python3
>>>>
>>>> and make sure you're set to 3.2 before removing 3.1.
>>>>
>>>> HTH,
>>>> Mark
>>>>
>>>>
>>>
>>>
>>> Last I heard we are not supposed to set python to 3 anything. Has that
>>> changed?
>>>
>>> Dale
>>>
>>
>> No, we're not supposed to set the *system* *default* to python3 yet.
>> Still, if you have multiple 3.x versions installed you would want to
>> set the python3 setting to the python version you want to default to
>> should some program absolutely require python3, so we've got 3 real
>> settings:
>>
>> System default - still python-2.x
>> Python2 - same python-2.x version as the system default
>> Python3 - what ever version you want for programs requiring Python3
>>
>> HTH,
>> Mark
>>
>>
>
>
> But if I tell eselect to set it to 3 something then that is what the
> system will try to use right? Isn't that what eselect does? I'm
> recalling what was posted after you emerge python here. The einfo/ewarn
> thingy.
>
> Again, this may have changed but what I'm wondering is if we need the
> python 2 stuff any more if we can set this to python 3. After all,
> python 2 has to die eventually. ^_^
>
> Dale
Dale,
I'll try to make it clearer:
The command "eselect python set #" sets the system python profile.
This command allows you to choose any python currently on your system.
You should only choose a python2 setting at this time.
The commands:
eselect python list --python2
eselect python set --python2 #
only deal with python2
The command
eselect python list --python3
eselect python set --python3 #
only deal with python3
All three of those profiles (python, python2 & python3) are distinct
entities. They are different and can each be set any way you want. I
was only clarifying that before you removed python3.1 that you choose
python3.2 for your python3 profile.
Clearer?
HTH,
Mark
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: Python update question
2012-03-02 19:24 ` Dale
2012-03-02 19:30 ` Tanstaafl
2012-03-02 21:47 ` Mark Knecht
@ 2012-03-02 22:49 ` walt
2 siblings, 0 replies; 13+ messages in thread
From: walt @ 2012-03-02 22:49 UTC (permalink / raw
To: gentoo-user
On 03/02/2012 11:24 AM, Dale wrote:
> But if I tell eselect to set it to 3 something then that is what the
> system will try to use right?
"The system" isn't granular enough (I've been dying to use that geek-
speak phrase :) when discussing portage, which is only part of a gentoo
"system".
List the files in sys-apps/portage and you'll see that none of them go
in /usr/lib/pythonN.N/site-packages like mere ordinary python packages.
They go instead in /usr/lib/portage, which is independent of your python
version.
However, try this trick:
#head -1 /usr/lib/portage/bin/emerge
#!/usr/bin/python3
You can see from that I've installed portage to use python3, even though:
#eselect python list
Available Python interpreters:
[1] python2.7 *
[2] python3.1
I still have my "system" python set to 2.7 like most of us, I suspect.
At this point, the portage package obeys the setting of the python3
useflag to decide which python to use and I have my python3 useflag
set, so portage announces "fixing shebangs" at the end of the emerge,
and that's where the #!/usr/bin/python3 comes from.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Python update question
2012-03-02 21:47 ` Mark Knecht
@ 2012-03-03 3:37 ` Dale
0 siblings, 0 replies; 13+ messages in thread
From: Dale @ 2012-03-03 3:37 UTC (permalink / raw
To: gentoo-user
Mark Knecht wrote:
> Dale,
> I'll try to make it clearer:
>
> The command "eselect python set #" sets the system python profile.
> This command allows you to choose any python currently on your system.
> You should only choose a python2 setting at this time.
>
> The commands:
> eselect python list --python2
> eselect python set --python2 #
>
> only deal with python2
>
> The command
> eselect python list --python3
> eselect python set --python3 #
>
> only deal with python3
>
> All three of those profiles (python, python2 & python3) are distinct
> entities. They are different and can each be set any way you want. I
> was only clarifying that before you removed python3.1 that you choose
> python3.2 for your python3 profile.
>
> Clearer?
>
> HTH,
> Mark
>
>
I see the difference now. I already ran --depclean and portage still
works. I'll run python-updater again tho. I didn't know eselect
treated them separately like that. Learn something every day.
Now to remember that. :/
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2012-03-03 3:39 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 11:36 [gentoo-user] Python update question Dale
2012-03-02 11:42 ` Dale
2012-03-02 12:42 ` Alex Schuster
2012-03-02 13:12 ` Dale
2012-03-02 14:28 ` Mark Knecht
2012-03-02 18:09 ` Tanstaafl
2012-03-02 18:20 ` Dale
2012-03-02 18:59 ` Mark Knecht
2012-03-02 19:24 ` Dale
2012-03-02 19:30 ` Tanstaafl
2012-03-02 21:47 ` Mark Knecht
2012-03-03 3:37 ` Dale
2012-03-02 22:49 ` [gentoo-user] " walt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox