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.
v25.2.30+
Linux container (e.g. gitlab-registry.cern.ch/atlas/athena/analysisbase:25.2.30
)
nanobind
was added to the ATLAS analysis release externals in release 25.2.30
. (c.f. Athena MR 74980)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