Pythonbrew warts on Debian Squeeze 6.0

I think the Pythonbrew developer is on vacation. There are a lot of outstanding pull reqeuests.

Anyway, I just created a new Debian 6.0 ‘Squeeze’ VM and installed Pythonbrew on it, but building Python was problematic:

$ pythonbrew install 2.7.3
Downloading Python-2.7.3.tgz as /home/gordon/.pythonbrew/dists/Python-2.7.3.tgz
######################################################################## 100.0%
Extracting Python-2.7.3.tgz into /home/gordon/.pythonbrew/build/Python-2.7.3

This could take a while. You can run the following command on another shell to track the status:
  tail -f "/home/gordon/.pythonbrew/log/build.log"

Installing Python-2.7.3 into /home/gordon/.pythonbrew/pythons/Python-2.7.3
Downloading distribute_setup.py as /home/gordon/.pythonbrew/dists/distribute_setup.py
######################################################################## 100.0%
Installing distribute into /home/gordon/.pythonbrew/pythons/Python-2.7.3
ERROR: Failed to install setuptools. See /home/gordon/.pythonbrew/build.log to see why.
Skip installation of setuptools.

Installed Python-2.7.3 successfully. Run the following command to switch to Python-2.7.3.
  pythonbrew switch 2.7.3

I could swear I’ve seen this before, I thought, and started searching. Eventually I gave up and just went to the Pythonbrew issues at Github. That’s where I found my own description of the problems building setuptools with Pythonbrew on Debian 6.0 Squeeze, followed by a very simple solution. This should also work for building Pythonbrew on some versions of Ubuntu.

(This includes additional dependencies that Github user alienone pointed out.)

sudo apt-get install curl build-essential zlib1g-dev libbz2-dev libreadline-dev \
  libgdbm-dev libssl-dev libsqlite3-dev libxml2 libxml2-dev libxslt1-dev \
  libgdbm-dev libgdb-dev libssl-dev libexpat1-dev libncursesw5-dev
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: