Python-2.7.2

Other talk about Salix
Post Reply
aryr100
Posts: 7
Joined: 21. Jun 2010, 14:22

Python-2.7.2

Post by aryr100 »

Could anyone help me with this
What is the package order for rebuild so that I can upgrade python to 2.7.2
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Python-2.7.2

Post by gapan »

Everything you need for building python should be there already. But what do you need python 2.7.2 for? Are you aware that you're going to break a lot of stuff if you upgrade python?
Image
Image
aryr100
Posts: 7
Joined: 21. Jun 2010, 14:22

Re: Python-2.7.2

Post by aryr100 »

Thx for replay
Yes I know that many packages will be broken
that is why I'm asking for a little help with the
list &
order
of the packages that need to be rebuild against the new python
I need this version of python for a class I'm taken I don't want to use some other distro just for python
User avatar
fredg
Posts: 232
Joined: 3. Oct 2009, 16:50
Location: Lyon, France
Contact:

Re: Python-2.7.2

Post by fredg »

You can install multiple versions of Python on your system.

You can do it a bit like like this:

Code: Select all

cd ~/NewPython
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
tar xf Python-2.7.2.tar.bz2
rm Python-2.7.2.tar.bz2
cd Python-2.7.2/
./configure --prefix=/opt/python2.7.2
make
make install
ln -s /opt/python2.7.2/bin/python2.7.2 /usr/bin/python2.7.2
And don't forget to adjust the new shebang in your script when you want to use that version.

Code: Select all

#!/usr/bin/python2.7.2
You can also use the Slackbuild (change the install path) to build a slackware package for an easier management:
http://slackware.mirrors.tds.net/pub/sl ... /d/python/

++
Post Reply