Page 1 of 1

Python-2.7.2

Posted: 24. Sep 2011, 16:23
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

Re: Python-2.7.2

Posted: 24. Sep 2011, 19:22
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?

Re: Python-2.7.2

Posted: 25. Sep 2011, 01:35
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

Re: Python-2.7.2

Posted: 25. Sep 2011, 07:49
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/

++