What is the proper way to go from python26 to python27?
Russell Jones
russell.jones at physics.ox.ac.uk
Wed Jul 6 08:55:56 PDT 2011
There's probably a neater way to do it, but I did something like
port search --line py26- | cut -f1 | xargs -n1 port installed | grep -Ev "(currently|are) installed" | sed -E "s/@.*//g" | sed "s/py26-/py27-/g" | xargs -n1 port info
then
port search --line py26- | cut -f1 | xargs -n1 port installed | grep -Ev "(currently|are) installed" | sed -E "s/@.*//g" | sed "s/py26-/py27-/g" | sed -E "s/^/sudo port install /g" > install-py27.sh
And edited the file, doing searches for the missing items in case they were irregularly named, or there was a replacement or equivalent.
Russell
More information about the macports-users
mailing list