Bashton Blog

CAT | RPM

Sep/08

4

Django 1.0 Released

The final version of Django 1.0 has been released.  Debian packages are available from the unstable repository and these should install cleanly on Ubuntu too.

As I noted previously with the Alpha releases, an RPM for RHEL5/Centos can be built by doing:

python setup.py bdist_rpm

Note you’ll need an updated MySQL-python library installed, which can be found below.

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

, , ,

Red Hat Enterprise 5 ships with Python 2.4.  As it uses this for the majority if its inbuilt scripts, it’s probably not such a good idea to just change it.

With this in mind, I built the following Python 2.5 RPMs, which create the python executable as /usr/bin/python25.  This means that where necessary, you can use Python 2.5, but the system scripts will continue to use 2.4.  If you do want to use Python 2.5 by default, by all means make /usr/bin/python a symlink to this – but don’t complain to me if ‘bad things’ happen.

64-bit RPMs:

python25-2.5.1-bashton1.x86_64.rpm
python25-devel-2.5.1-bashton1.x86_64.rpm
python25-libs-2.5.1-bashton1.x86_64.rpm
python25-test-2.5.1-bashton1.x86_64.rpm
python25-tools-2.5.1-bashton1.x86_64.rpm

Source RPM:

python25-2.5.1-bashton1.src.rpm

, ,

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

, , ,

Find it!

Theme Design by devolux.nh2.me