hello
>
> Please, anyone knows how safe or how to upgrade to or install side by
> side python-2.7?
>
I am using python-2.7 since quite a lot and do not see any problem; so I
would say that it is safe to upgrade (of course, this is my personal
experience: python is used by so many sw packages that it might well be
that 2.6->2.7 breaks some)
As to having both 2.6 and 2.7, I have at least 2 strategies to
suggest.
1. For years I maintained different python versions in completely
seperated trees, with a symlink to select a specific version.
Something like this:
/usr/local/python -> /usr/local/python-2.7.4
/usr/local/python-2.7.2
/usr/local/python-2.7.3
/usr/local/python-2.7.4
/usr/local/python-3.2.2
/usr/local/python-3.3.0
/usr/local/python-3.3.1
/usr/local/site_python -> /usr/local/site_python-2.7.4
/usr/local/site_python-2.7.2
/usr/local/site_python-2.7.3
/usr/local/site_python-2.7.4
/usr/local/site_python-3.3.0
/usr/local/site_python-3.3.1
For this to work, you need to have:
PATH=...:/usr/local/python/bin:...
PKG_CONFIG_PATH=..:/usr/local/python/lib/pkgconfig:...
MANPATH=...
PYTHONPATH=...
and may be some other variable appropriately set in your shell start
script(s)
Moreover, if you install something which needs a particular version of
python (which is not the one pointed by the symlink) you can:
=> either point temporarily the link to the needed version for the build
=> or (better, in my opinion) instruct the build process about where
to find the needed pieces by setting PATH, PKG_CONFIG_PATH
LD_LIBRARY_PATH etc in a build script
2. Since 1-2 years I discovered stow (http://www.gnu.org/software/stow/)
which in my opinion is one of the brightest thoughts in the field of
sofware management; it is simple, essential, yet it allows you to
manage and control perfectly any sw installation. I still remember
the nightmare of some installations: "What will this upgrade break?"
and "How will I recover my system?" etc. Stow has simply removed all
this pain.
So: have a look at stow (but there are of course other equivalent
management systems) and think about migrating all your installations
under it
hope to have been of any use
ciao
gabriele
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page