Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 535 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 535 Bytes

boost-python-hello-world

Boost Python Hello World for Cmake 3.12+

Installation

Requirements

On macOS

brew install python3 cmake boost boost-python3

On Ubuntu / Debian

sudo apt install python3 python3-dev cmake libboost-all-dev

Build steps

mkdir build
cd build && cmake .. && make 

Usage

cd build
python3

In the python shell

> import greet_ext
> greet_ext.greet()

Notes

Has been tested on Intel and Apple Silicon Macs on macOS 12.1, as well as Ubuntu 20.04LTS.