xo-umbrella2/xo-pyindentlog2
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 xo-pyindentlog2: ++ PrettySink [PYBIND] 2026-09-06 17:56:22 -04:00
src/pyindentlog2 xo-cmake: generate python module #includes [HYGIENE] 2026-09-13 12:00:21 -04:00
.gitignore xo-pyindentlog2: ++ PrettySink [PYBIND] 2026-09-06 17:56:22 -04:00
CMakeLists.txt standalone pybind subsystems make xo-python [PYBIND] [BUILD] 2026-09-07 19:46:43 -04:00
README.md move python extensions into xo namespace [REFACTOR] 2026-09-13 11:51:33 -04:00

python bindings for c++ pretty-printing library (xo-indentlog2)

Getting Started

build + install dependencies

build + install

$ cd xo-pyindentlog2
$ 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-pyindentlog2 installed to ~/local2/lib/python

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