Porting Sugar to Python3 Progress

I started with porting sugar-build to Python3 as it is used to build the rest of the sugar environment.

Until now, I have used 2to3[1] script with all fixers enabled on the sugar-build module which contained an osbuild script, python scripts for various commands and the test. And now I am executing the osbuild script and removing the errors one by one by doing the necessary changed in the code. Right now, it is taking time to deal with the errors which mainly include the proper usage and handling of strings in Python3[2].
It is worth noting though that as I learn how to deal with these errors, the porting further is going to get easier and easier.

I have cloned the sugar-build repo on GitHub and am working on it.
So although, it doesn't work perfectly right now you can follow my progress here:

https://github.com/curiousguy13/sugar-build/tree/py3

[1]: https://docs.python.org/2/library/2to3.html
[2]: http://www.diveintopython3.net/strings.html

Comments

Popular Posts