22 Oct 2004 RickMuller   » (Journeyer)

The Python Distutils are one of the nicer features about Python, as they allow one to build, install, and distribute Python modules.

I'm in the process of trying to build RH9/FC1/FC2 RPMs using the distutils for the PyOpenGL module, and am having problems.

First, the distutils builds more than one version of the RPM file (a debug version and a non-debug version), and then dies on a simple AssertionError when it finds more than one version. As seen here, the distutils mailing list has known about this for over a year, and I don't know why it hasn't been fixed. Obviously, one can simply hack bdist_rpm.py, but I don't want to do this, in part because I want to be able to make sure that people who use my software can install/upgrade things without hacking their python installation.

Secondly, when calling bdist_rpm, one is supposed to be able to pass in --python=whatever arguments to specify which version of Python one is building the RPM for. This doesn't seem to work, and, additionally, seems to kill other options.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!