[Pandas-dev] Script to set up fresh Python 2.7/3.2 virtual build environments on Ubuntu (tested on 12.04.2 LTS)

Stephen Lin stephenwlin at gmail.com
Wed Apr 3 22:14:01 CEST 2013


Hi all,

I've set up a new development machine lately and decided to write all
the steps down as a script in order to make it easier to reproduce
later.

I've decided to contribute it to the list in case anyone else finds it
helpful. It's tested to work unattended on a fresh Ubuntu 12.04.2 LTS
installs (32-bit and 64-bit), and should be useful for other
distributions as well with some modifications.

There are two optional parameters, first the username for the pandas
fork to check out, and second the username for the vbench fork to
check out; pydata versions are used if the latter or both are omitted.

Also, it sets up .env2.7 and .env3.2 virtualenv directories as
subdirectories of the checked out pandas directory and installs
necessary dependencies into them in the correct order (which should
all succeed since the necessary system-wide c libraries are first
installed via apt-get.) Some optional dependencies are omitted in the
3.2 environment since they don't seem to build correctly and I didn't
spend much time trying to fix them.

There's basically no error checking, but it shouldn't do anything that
could clobber anything in case any intermediate steps fail: probably
best to run it with stdout and stderr both tee'ed to a log file just
in case, though, and/or more checks if you're not using directly on
12.04.2 LTS.

Stephen

---------- Forwarded message ----------
From: Stephen Lin <stephenwlin at gmail.com>
Date: Wed, Apr 3, 2013 at 4:02 PM
Subject:
To: stephenwlin at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checkout-pandas-script
Type: application/octet-stream
Size: 1814 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pandas-dev/attachments/20130403/5d2dd4f4/attachment.obj>


More information about the Pandas-dev mailing list