Skip to content

divergex/pybind-cibuildwheel-pipeline

Repository files navigation

pybind-cibuildwheel-pipeline

Create a C++ library with python bindings using pybind.

Contains a build pipeline using scikit-build-core within the pyproject.toml description file. Additionally, contains a Github workflow file to use cibuildwheel to build and deploy the python bindings to pypi.

Prerequisites

Ensure the following are installed and set up:

Development

Configuring build

Configuring CMake

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S ./ -B cmake-build-debug 

Building library

cmake --build cmake-build-debug --target library -j $(nproc)

Building python bindings

cmake --build cmake-build-debug --target python -j $(nproc)

Installing python package

pip install -e .

Local build test

act push -b \
  --artifact-server-path=/tmp/artifacts \
  --container-options "--privileged";

About

Create a C++ library with Python bindings using Pybind.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors