Bashton Blog

Jul/08

31

Django 1.0-alpha RPMs for Centos/RHEL 5

We’ve been using Django a lot for some internal projects, and for various reasons we’re using CentOS 5 on the servers running them.

One nice feature of the Python build system I didn’t know about until today is the ability to make RPMs using the setup.py script.  To build yourself some Django RPMs, just run:

python setup.py bdist_rpm

Unfortunately, this feature seems a bit hit and miss.  Django needs a newer version of MySQL-python than ships with EL5, but unfortunately the bdist_rpm for this doesn’t work.

As such, here’s a link to an updated MySQL-python RPM I’ve built:

MySQL-python-1.2.2-1.x86_64.rpm

If you’re not using a 64bit server, you can download this source RPM and rebuild via rpmbuild –rebuild:

MySQL-python-1.2.2-1.src.rpm

RSS Feed

2 Comments for Django 1.0-alpha RPMs for Centos/RHEL 5

Bashton Blog » Blog Archive » Django 1.0 Released | September 4, 2008 at 9:49 am

[...] I noted previously with the Alpha releases, an RPM for RHEL5/Centos can be built by [...]

Darryl | November 10, 2009 at 4:51 am

Thanks for this. Still useful :)

Leave a comment!

<<

>>

Find it!

Theme Design by devolux.nh2.me