'How to install pycairo for the Apple build of Python 2.7, using easy_install

I want to install the Python bindings for Cairo on Mac OSX Lion, so that I can use them with the Apple build of Python 2.7. I tend to install Python modules etc using easy_install, but that doesn't appear to work in this case:

$ sudo easy_install pycairo
Searching for pycairo
Reading http://pypi.python.org/simple/pycairo/
Reading http://cairographics.org/pycairo
Best match: pycairo 1.10.0
Downloading http://cairographics.org/releases/pycairo-1.10.0.tar.bz2
Processing pycairo-1.10.0.tar.bz2
error: Couldn't find a setup script in /tmp/easy_install-BYpm4Y/pycairo-1.10.0.tar.bz2

Similar questions have been asked elsewhere on Stack Overflow, but the answers do not explain what I'm doing wrong here.

This question relates to Python 2.6, the accepted answer uses Macports rather than easy_install, and the other answer appears to be advising the use of exactly the method I tried above (which failed):

How do you install pycairo on Mac OS X?

And this question relates to building pycairo from source, which I don't want to do:

How to install pycairo on osx?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source