If you have already installed it, you can use Programs and Features to modify your install and add debugging symbols.Ĭlone our repository using git clone -recurse-submodules or using Team Explorer in Visual Studio. If you install it yourself, you will need to select “Customize installation” and include debugging symbols. Note: When you install Python 3.6 32-bit through Visual Studio, it automatically includes debugging symbols. If you already have Visual Studio 2017, these can be added by launching “Visual Studio Installer” and modifying the existing install. To build and run this sample on your own machine, you will require Visual Studio 2017 with the Python workload, the Python Native Development option, and Python 3.6 32-bit. Rather than using the keyboard to move the character around, we can use Python code to call into the C++ functions that control him. For this sample, we have taken one of their character animation demos and extended it with Python. Both the engine and its source code are freely available from their website. Ogre3d is an open-source game engine written in C++ that has been used in games such as Hob and Torchlight 2. The sample code is available at /zooba/ogre3d-python-embed and setup instructions are below. In this post, we’re going to walk through a sample project that demonstrates scripting a C++ application with Python using CPython, PyBind11 and Visual Studio 2017.
Watch the video version of this post on VS Toolbox