Porting Pygame 1.9 to Python 3
The goal is to make Pygame compatible with both Python 2.x and Python 3. So far most Python 1.9.2a0 modules build and pass their unit tests in Python 3. The corresponding examples also run. A major milestone was the release of NumPy for Python 3.1 in August, 2010. Pygame surfarray and sndarray are now ported. Some issues regarding Unicode file paths are being dealt with in the fsencoding branch. This will soon be merged back into trunk.
April 14, 2009:
The build chain, config.py and setup.py, have been modified for Unix and Windows.These can run from Python 3.0 and successfully build updated modules.
At this point the following modules have been updated: base, surface, surflock, rect, color, constant. The pygame package __init__ has also been updated. The unit test framework has been reworked enough to allow the individual unit test modules to run as stand-alone programs. The rect and color modules fully pass their unit tests.
The changes to the python3 __init__.py have been merged back into the trunk. The compat.py module was also added.
The minimal requirements of getting the chimp.py and aliens.py examples running were met. The following modules were updated:
The following unit tests were also update:
The following examples have been updated:
September 1, 2010
Further modules ported to Python 3.1. Though all ported modules now pass their unit tests further testing is needed.
All examples except camera, overlay, vgrade, __movie and scrap_clipboard are considered ported.