Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
set default python interpreter to 2.5- How do i do it?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Lithonite
n00b
n00b


Joined: 10 May 2008
Posts: 14

PostPosted: Tue Jul 08, 2008 1:23 am    Post subject: set default python interpreter to 2.5- How do i do it? Reply with quote

Currently the default is set to 2.4.4 which installed with sys

I just pulled down the source for 2.5.2, and i would like to make it the default for my environment. Looked through wiki and could not find the answer( no i cannot" just emerge python " - as one python-2.5.1.r5 cant be found... )

So having pulled down the latest python, i would like to now well, set it as my default so i can make use of executable .py scripts i have via the 2.5 interpreter.

I dont know how to do this, and I do not want to try and pull and "ln -s" maneuver if possible.
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Jul 08, 2008 1:29 am    Post subject: Reply with quote

There appears to be an eselect-python package. You could try that.
Code:
# eix app-admin/eselect-python
* app-admin/eselect-python
     Available versions:  ~20080124 20080521 ~20080620
     Homepage:            http://www.gentoo.org
     Description:         Manages multiple Python versions
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Tue Jul 08, 2008 6:19 am    Post subject: Reply with quote

If you installed python-2.5 via emerge, it will be the system python. After that, you'll need to run python-updater to update anything that creates python modules. Once you've done that, run python --version and see what it says.

I don't have eselect-python installed, and have been using python-2.5 since it hit unstable with no problems.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Lithonite
n00b
n00b


Joined: 10 May 2008
Posts: 14

PostPosted: Tue Jul 08, 2008 4:19 pm    Post subject: ... Reply with quote

Thanks for the replies guys... As mentioned above emerge of python FAILS as a file its pointing does not exist in the directory its pulling from.
I have manually pulled down python 2.5 - and i certainly can execute it and run against it.

I just want to make python 2.5 the default interpreter when i type "Python" or when i "./" on an executable .py file.
I'll do python-updater once "python -v" returns with data from the 2.5.2 build.

From what i can tell all i need is to be able to set my already already pulled down and executable binary of python2.5 as my default python instance.

But i cant find where the heck to set, this. When emerge pulls this down its updating environment variables to let it know that python 2.5 is the new default. How do i do this command line style?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum