Home - Forums - Documentation - Gallery - Bugs


Compiling Python bindings with MSVC

What you need

This tutorial explains you, how you can build cspython, _cspace, and CEL blpython plugins with MSVC. First, I assume, you succeslfully compiled CS (and optionally CEL). You can find the comlete guide to do this in the manual. Get python packages from the official site, and download a Windows binary package. Install it. Finally, download the correct cs_pyth.cpp from here. Extract the zip file, and copy int your CS/plugins/cscript/csypthon directory. Yes, rewrite the original file. Prepertion finished.

Setting up MSVC IDE

1. Run MSVC IDE. 2. Go to the Tools->Options->Projects and Solutions->VC++ Directories Select Include files above. Click to New Line icon, and type or select your Python"2X/Include directory. 3. Select Library files Click to New Line icon, and type or select your Python"2X/libs directory.

From now MSVC will find Python related headers and directories.

Creating the solution

| Article | Discussion | View source | History |