$ sudo apt-get install subversion build-essential libboost-python-dev python3.2-dev libboost-system-dev libboost-thread-dev
At the moment it's a good idea to fetch the latest source code from the repository to build the V8 library and the wrapper.
$ cd ~ $ mkdir svn $ cd svn $ svn checkout http://v8.googlecode.com/svn/trunk/ v8 $ svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8-read-only
Before starting to build the wrapper some dependencies for the V8 library have to be installed.
$ cd v8 $ make dependencies $ cd ..
If the installation was successful it's time to start building the wrapper itself. First of all the setup.py has to be modified. Line 129 has to be changed accordingly to the following example.
boost_libs = ['boost_python-py32', 'boost_thread', 'boost_system']
Now it's time to build and install the PyV8 wrapper.
$ cd pyv8-read-only/ $ V8_HOME=$HOME/svn/v8/ python3.2 setup.py build $ sudo python3.2 setup.py install
In some situations it might be a good idea to install the wrapper inside a virtual python environment. Due to some dependency problems only the last command should be run inside the environment. In this case the 'sudo' command can be left out.