Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

VRML97 converted to use numpy or Numeric (and setuptools...)


I've converted the VRML97 scenegraph accellerator modules to use numpy (preferred) or Numeric. I also discovered a subtle import error, I had used from ctypes import * in one of the modules and as a result it was shadowing a Numeric/numpy function (resize). I'll have to go through and eliminate all from ctypes import * ...

Continue reading

Don't get anywhere particularly useful on Win32 (Do get past the particular failure)


The proximate failure on Win32 appears to be a problem with how distutils handles "spawning" processes. If I replace the spawning code with os.system calls then SimpleParse builds correctly from distutils.

However, there's no Numeric for Python 2.5 against which to build, and I eventually just got tired of trying to figure out what I ...

Continue reading

SimpleParse has a Win32 Python 2.5 binary (Egads what a pain...)


Managed to convince the MSToolkit toolchain to create a binary for SimpleParse, though it required manually copying the individual commands distutils was spitting out and running them from the command line. Bah.

Apparently the MSToolkit as I have it set up always tries to run the linker and fails. There is also some problem with ...

Continue reading

Bit of work with TurboGears (Have to work with it more often)


Spent the day doing mock-up of a Voicemail configuration and "viewing" web-site in Turbogears. Still just early moments, such little things as actually hooking it up to Asterisk realtime and the like haven't been touched, I'm just populating the tables it requires. I like the jsonify mechanism, makes it easy to define how to linearise ...

Continue reading

Win32 goes reasonably well (With a few annoyances...)


A few changes to the Win32 platform module and a few tweaks to deal with problems on Win32 (particularly with one of the image-packing settings that gets rejected as invalid, but which is just a belt-and-suspenders setting anyway).

Considerable number of the OpenGLContext demos are now working on Win32. I'll need to get various (compiled) ...

Continue reading

Hacking the night away (Optimising with OpenGL-ctypes)


I added the ability to set a flag on the numpy format handler to raise errors when a numpy array is passed in that requires a copy to be passed to ctypes. The idea is that you can use it to catch unwanted copying (during development). Found quite a few instances in OpenGLContext where I ...

Continue reading

Josh, got your messages (No mail-server access here...)


Probably the easiest approach is to just give you (Josh) developer access to the PyOpenGL project for development work. (Josh is doing the Mac OS-X porting work).

I've added the missing arrayhelpers module to the project that Josh pointed out. Modifications to the error module from this weekend were intended to address the problems on ...

Continue reading

Beginning the porting work (Well, began...)


Got to the point of actually compiling the first project last night. I chose SimpleParse because it's a fairly straightforward extension but it's not stupid-simple like the various accellerator extensions. I obviously forgot to check in the changes from the last time I ported it to Win32 :( . I fixed one or two glaring ...

Continue reading

Almost done setting up the win32 toolchain (Downloading the last piece now... and for the next few hours)


I've got most of the system setup done for the Win32 compilation. I have the cygwin tools all installed and the major projects checked out. I've got the path and pathext setup for python and have easy-install installed. However, I'm missing a module that's sitting on the machine's (reiserfs) hard-disk un-checked-in (and thus unavailable to ...

Continue reading

Something sucks in redmond (PITA continues to be a pain)


I spent 3.5 hours last night installing and re-installing Windows 2000. Another few hours this morning/afternoon. Every time I installed any of the video drivers for the Leadtek card (Leadtek's or nVidia's) I wound up with a machine that couldn't display anything (even in safe mode) because the driver would always load and corrupt the ...

Continue reading