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:
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
Darryl | November 10, 2009 at 4:51 am
Thanks for this. Still useful



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