matthewfeickert / atlas-cmake-nanobind-example

Example nanobind CPython extension (taken from the docs) for an ATLAS CMake environment
MIT License
0 stars 0 forks source link

ATLAS CMake Nanobind example

Example nanobind CPython extension meant to be built in an ATLAS CMake environment.

This is the trivial example taken from the nanobind docs and the nanobind_example GitHub repository. This repository intentionally produces a nanobind module and not an Python library.

Requirements

Getting started

This repository contains examples of projects that could be included as modules in an ATLAS CMake build. First clone the repository and navigate inside of it

git clone git@github.com:matthewfeickert/atlas-cmake-nanobind-example.git && cd atlas-cmake-nanobind-example

To run the "normal" CMake example with nanobind run

bash build_normal_cmake.sh

and to run the ATLAS CMake example run

bash build_atlas_cmake.sh