parogers / pgu

Automatically exported from code.google.com/p/pgu
GNU Lesser General Public License v2.1
86 stars 36 forks source link

pgu won't install in python3 because os.path.walk was removed #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Due to the removal of os.path.walk in favor of os.walk the setup.py file won't 
work with the current version of Python3 (Python 3.2). I've attached a patch 
file for setup.py, which replaces os.path.walk with os.path. (And for 
convenience the patched setup.py file) While it produces the same output for me 
like the old setup.py file (used with python 2.7), there was a statement in the 
original checking for .svn, which I didn't included. That's simply because I 
don't know whether it is necessary. But it should be no problem to add it. 
Furthermore I added a cmdclass, so that distutils automatically calls 2to3 on 
every file. 

It builds just fine on my computer, so I hope it is flawless although it 
probably need some adjustments. 

Original issue reported on code.google.com by 0ink...@googlemail.com on 22 Jul 2011 at 3:38

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the tip, I've eliminated the need for walk by using the glob module 
instead. I've fixed the SVN version - expect a release to follow soon.

Original comment by peter.ro...@gmail.com on 26 Sep 2011 at 3:17