On Oct 30, 2011 12:47 PM, "Bruce Dubbs" <bruce.du...@gmail.com> wrote: > > I have added Python2 to the book for backward compatibility. When both > versions 2 and 3 are built, the executables are: > > 2 9501 /usr/bin/python > 1 16 /usr/bin/python-config -> python2.7-config > 2 9501 /usr/bin/python2.7 > 1 1618 /usr/bin/python2.7-config > 3 12339 /usr/bin/python3 > 1 16 /usr/bin/python3-config -> python3.2-config > 3 12339 /usr/bin/python3.2 > 1 17 /usr/bin/python3.2-config -> python3.2m-config > 3 12339 /usr/bin/python3.2m > 1 1820 /usr/bin/python3.2m-config > > 1 19 /usr/lib/libpython2.7.so -> libpython2.7.so.1.0 > 1 6389835 /usr/lib/libpython2.7.so.1.0 > 1 20 /usr/lib/libpython3.2m.so -> libpython3.2m.so.1.0 > 1 7088886 /usr/lib/libpython3.2m.so.1.0 > 1 5066 /usr/lib/libpython3.so > > Note that the first column is the number of hard links. > > These do not seem to conflict. However the book has 61 references to > Python in other packages and they all point to Python3. I need some > help in figuring out which are OK pointing to Python3 and which need to > be changed to Python2. The packages are listed below.
Bruce, python 3 is a completely new API from python 2. That's why they bumped the major version. IMO, you are far better off keeping python 2 as the default and moving packages to python 3 as you find they work. It's like gtk 3. Some apps or libraries will run on the new API with little or no porting, but the intention is to opt them in because it's not backwards compatible. I don't think you want to declare a flag day on python unless you're willing to fix a lot of breakage. I use python fairly often and I've never even tried to write a python 3 program. Just running the 2to3 program on a quickie script I wrote yesterday shows me that it wouldn't work for python 3. The thing that broke is a fairly simple construct that I'm sure I've used many times, too (implicit conversion from range() to an iterable list). Are you sure you want to be tackling this yourself: http://docs.pythonsprints.com/python3_porting/py-porting.html -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page