Re: Python2 vs Python3

2011-11-02 Thread Bruce Dubbs
Dan Nicholson wrote: > 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. Yes, I changed the default to p2 on Monday. > Are you sur

Re: Python2 vs Python3

2011-11-02 Thread Dan Nicholson
On Oct 30, 2011 12:47 PM, "Bruce Dubbs" 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  

Re: Python2 vs Python3

2011-11-01 Thread Bruce Dubbs
Wayne Blaszczyk wrote: > Bruce, > I've merged the latest changes into my own repository and I must say, > the python stuff was a bit confusing. > Below is the xml vs id vs html table: > > xml id html > python.xmlpython3 python3.html > python2.xml python python2.html > > Can

Re: Python2 vs Python3

2011-10-31 Thread Wayne Blaszczyk
Bruce, I've merged the latest changes into my own repository and I must say, the python stuff was a bit confusing. Below is the xml vs id vs html table: xml id html python.xml python3 python3.html python2.xml python python2.html Can we change the python.xml to python3.x

Re: Python2 vs Python3

2011-10-31 Thread Andrew Benton
On Mon, 31 Oct 2011 01:33:40 -0500 DJ Lucas wrote: > On 10/30/2011 04:55 PM, Andrew Benton wrote: > > With a lot of work it's possible to compile and install libxml2's > > python bindings into python3 but the effort was all in vain, they don't > > work as they use python 2 isms > Did you try usin

Re: Python2 vs Python3

2011-10-31 Thread DJ Lucas
On 10/30/2011 04:55 PM, Andrew Benton wrote: > With a lot of work it's possible to compile and install libxml2's > python bindings into python3 but the effort was all in vain, they don't > work as they use python 2 isms Did you try using 2to3 on them? It *seems* to work pretty well, and gives actu

Re: Python2 vs Python3

2011-10-31 Thread DJ Lucas
On 10/30/2011 02:03 PM, Bruce Dubbs wrote: > 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. I'd personally prefer

Re: Python2 vs Python3

2011-10-30 Thread Bruce Dubbs
Andrew Benton wrote: > On Sun, 30 Oct 2011 14:03:59 -0500 > Bruce Dubbs wrote: >> basicnet/netprogs/subversion.xml > > Subversion definitely fails to compile it's python bindings with python-3 as > /usr/bin/python, I tested that earlier. > >> general/genlib/glib2.xml > > Glib2 fails in it's gi

Re: Python2 vs Python3

2011-10-30 Thread Andrew Benton
On Sun, 30 Oct 2011 14:03:59 -0500 Bruce Dubbs wrote: > basicnet/netprogs/subversion.xml Subversion definitely fails to compile it's python bindings with python-3 as /usr/bin/python, I tested that earlier. > general/genlib/glib2.xml Glib2 fails in it's gio tests if /usr/bin/python is python3,

Python2 vs Python3

2011-10-30 Thread Bruce Dubbs
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 312339 /usr/bin/python3