xo-umbrella2/xo-pyreactor2
Roland Conybeare 03a542b4dd
Some checks failed
cmake-docker / cmake-build (clang, clang++) (push) Failing after 13m12s
cmake-docker / cmake-build (gcc, g++) (push) Failing after 13m7s
CI / smoke-test (push) Has been cancelled
xo-cmake: generate python module #includes [HYGIENE]
2026-09-13 12:00:21 -04:00
..
cmake build: + xo-pyreactor2 [WIP] 2026-09-07 21:57:25 -04:00
src/pyreactor2 xo-cmake: generate python module #includes [HYGIENE] 2026-09-13 12:00:21 -04:00
CMakeLists.txt build: + xo-pyreactor2 [WIP] 2026-09-07 21:57:25 -04:00
LICENSE Add 'xo-pyreactor2/' from commit '62c4e36bc3' 2026-09-03 09:01:39 -04:00
README.md move python extensions into xo namespace [REFACTOR] 2026-09-13 11:51:33 -04:00

python bindings for c++ reactor library (xo-reactor2)

Counterpart to xo-pyreactor, which binds the older xo-reactor. This module binds xo-reactor2 -- the facet-based (obj<AFacet>) reactor -- and is expected to replace xo-pyreactor once that surface settles.

Status: scaffold. The module builds, imports and links against xo_reactor2, but binds nothing yet.

Getting Started

build + install dependencies

build + install

$ cd xo-pyreactor2
$ mkdir build
$ cd build
$ INSTALL_PREFIX=/usr/local  # or wherever you prefer, e.g. ~/local
$ cmake \
    -DCMAKE_MODULE_PATH=${INSTALL_PREFIX}/share/cmake \
    -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} \
    -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} ..
$ make
$ make install

Examples

Assumes xo-pyreactor2 installed to ~/local2/lib/python

PYTHONPATH=~/local2/lib/python:$PYTHONPATH python
>>> import xo.reactor2
>>> dir(xo.reactor2)
['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']
>>>