Manully build and install pyv8 in virtualenv

Last updated on by michaelyin

Here is the tutorials about how to build and install pyv8 in virtualenv on Ubuntu

cd ~
mkdir pyv8_install
cd ~/pyv8_install

#checkout the source code
svn checkout http://v8.googlecode.com/svn/trunk/ v8
svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8
git clone https://github.com/buffer/thug.git thug

#patch the pyv8
$ cp thug/patches/PyV8-patch1.diff .
$ patch -p0 < PyV8-patch1.diff
patching file pyv8/src/Context.cpp

export V8_HOME=/home/(YOUR_USER_NAME)/pyv8_install/v8

#open the debug mode to see the detail
export DEBUG=1 # Unix

#if the OS have no Boost Lib, make sure apt-get install first
sudo apt-get install -y libboost-thread-dev libboost-all-dev

cd pyv8
python setup.py build

#if you need to install on system python env, need to run as sudo
python setup.py install
Reference:

Build and Install thug

How to build pyv8

Send Me Message

Tell me more about your project and see if I can help you.

Contact Me