-
Notifications
You must be signed in to change notification settings - Fork 20
Getting Started on Windows x64
dcoetzee edited this page Jul 4, 2012
·
12 revisions
-
Visual Studio 2008
- For Visual Studio 2010: You need to make the following change in
C:\Python27\Lib\distutils\msvc9compiler.py
. Change line 243 to:toolskey = "VS100COMNTOOLS"
- For Visual Studio 2010: You need to make the following change in
- Python (x64), be sure to download the 64-bit installer
-
CodePy, official branch has problems with Windows environments, please use this branch instead.
git clone https://github.com/BryanCatanzaro/catanzaro.codepy
- Pytools and its dependencies. The best way to get this is to install easy_install, then do: easy_install pytools
- Numpy, unofficial Windows binaries for Numpy 64-bit
-
boost.python, required by CodePy. There are no official pre-compiled Windows 64-bit binaries, so we need to build from source.
- Extract Boost into a directory on which you have write permissions. Use
bootstrap
to create the build toolb2
. - Compile from source:
b2 --toolset=msvc-9.0 address-model=64 --build-type=complete stage
- Extract Boost into a directory on which you have write permissions. Use
In order to connect Boost.Python and CodePy, you need to specify some things in C:\Users\[Username]\.aksetup-defaults.py
. On my installation of Windows, I have:
BOOST_INC_DIR = ['C:\\boost_1_48_0']
BOOST_LIB_DIR = ['C:\\boost_1_48_0\\stage\\lib']
BOOST_COMPILER = 'msvc'
BOOST_PYTHON_LIBNAME = ['boost_python-vc90-mt-1_48']
BOOST_THREAD_LIBNAME = ['boost_thread-vc90-mt-1_48']
CXXFLAGS = ['/EHsc']
LDFLAGS = ['/FORCE']
Make sure BOOST_LIB_DIR above is also in your path. Run tests in catanzaro.codepy\tests.
Get asp:
git clone git://github.com/shoaibkamil/asp.git
Build, install, then run run_tests.sh