Python Distutils

October 22, 2004

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: