philwilson.org

A Python rant

22 August, 2006

Whilst wedding and Norway posts are forthcoming, a small rant about installing extra libraries into Python on Windows.

How hard can they make it? I mean, really? What I want to do: write a python app using the Twisted library. An hour later, and I’m yet to get to the coding part. Installation of Python 2.4 and writing basic code is as simple as expected, yet as soon as you want to install a third party library you either have to bank on the provider having generously created a binary installer for you or you need to download almost a gig of .NET libraries in order to compile it yourself followed by editing some core Python files (full details).

I’d use the Twisted binary installer but it doesn’t even recognise that I’ve got Python installed, so I don’t know how I can possibly help it out. The internet suggests that this is a problem with user vs. Administrator rights. For a third party library for a programming language? Are they taking the piss? Do I need to make sure that when I use CPAN or access a JAR file I’m a particular user, no! Absolute madness.

This, of course, was after I managed to install the zope.interface package – the tarball I downloaded from the Twisted website included it but python setup.py install didn’t work, so I had to download it separately from http://zope.org/Products/ZopeInterface.

So anyway, despite no obvious indications about it on the Python website I guess my only options are

but I just don’t get it. Why the hell do I need a C++ compiler or do some horrendous registry hacking to be able to use a Python library?

See other posts tagged with general and all posts made in August 2006.

Comments

James Wheare
22 August, 2006 at 20:59

Depending on your needs, I’d recommend using Django instead 🙂

*ducks*

Pip
22 August, 2006 at 21:34

Actually, I had considered it early on, but I’d like to get to use Twisted and it seems appropriate for what I want (proprietary protocol IM server).

James Wheare
23 August, 2006 at 00:33

Ah yes, Django’s probably not terribly suited for something like that…

PS: Welcome back!