PythonCppExtension

Build

To configure the build, CMake is required

Using Python

python3 setup.py build

Invoke CMake manually

cmake -B build
cmake --build build

Debugging

GDB

Start a GDB session

./gdb.sh

C++ application

Alternatively, debug the application pydbg.cpp which embeds the Python interpreter and imports the module.

Python

Start an interactive Python session:

./init.sh