Decided to see how much work getting PyOpenGL ported to Python 3.x would be. Notes so far:
- ubuntu has Python 3.1 packaged (yay)
- also has distribute and -dev, you'll need both
- virtualenv -- this is key for my porting work-flow (not just for PyOpenGL, for almost every project), had to use an hg branch to get it working
- numpy can be built from svn for Python 3.1
- just added a flag to setup so that 2to3 would get run for Python 3 installs via easy_install
- got lots of NameErrors where I was cleaning up (deleting) loop vars after the loops, added try:except NameError around those
- str array support will need to be reworked slightly, may as well support arbitrary buffers while we're at it (we use Python-API calls to get the string pointer, may as well allow passing any buffer-protocol-supporting instance)
- didn't try building the accelerator modules
- without pygame, the built-in tests won't run, didn't feel like building pygame from svn just to test this
- GLUT-only demos do run, all looks to be working properly, save that without string support shaders can't be compiled (they are passed as arrays-of-strings).
- Demo code isn't currently easy_installed, so we don't get free 2to3 support there
Pingbacks are closed.