30
Mar
Building PyV8 for Python 2.5 on Windows
- Before starting:
- Download and install Visual C++ 2008 Express Edition from here
- Download and install Python 2.5 from here
- Download boost (v1.42 at the moment of writing this) from here
- svn checkout http://pyv8.googlecode.com/svn/trunk/ C:\Projects\pyv8-read-only
- svn checkout http://v8.googlecode.com/svn/trunk/ C:\Projects\v8-read-only
- Compiling Boost:
- Rename Python installation folders other than “C:\Python25″
- IE: Rename “C:\Python26″ to “C:\XXXPython26″
- C:\Projects\boost_1_42_0\bootstrap
- C:\Projects\boost_1_42_0\bjam –toolset=msvc-9.0express –with-python link=static runtime-link=static release
- Rename the Python installation folders back
- Rename Python installation folders other than “C:\Python25″
- Compiling V8:
- Add “C:\Python25″ to %PATH% environment variable
- C:\Projects\v8-read-only\tools\visual_studio\v8.sln
- Build “v8_snapshot” project in “Release” mode
- Compiling PyV8:
- set PYTHON_HOME=C:\Python25
- set BOOST_HOME=C:\Projects\boost_1_42_0
- set V8_HOME=C:\Projects\v8-read-only
- C:\Projects\pyv8-read-only\PyV8.vs2008.sln
- Build in release mode
- References:

Leave a Reply