| .. | ||
| cmake | ||
| src/pyindentlog2 | ||
| .gitignore | ||
| CMakeLists.txt | ||
| README.md | ||
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__']
>>>