Skip to content

Build and installation

PAN, Myautsai edited this page Feb 4, 2016 · 2 revisions

For libmc user

You can install from pypi:

pip install libmc

If you are encountering any issue related to Cython, try to upgrade your Cython and try it again:

pip install --upgrade Cython

For libmc developer

To build the internal C/C++ code, you should install cmake first, and then:

mkdir -p build
cd build
cmake ..
make

Run unittest for the internal C/C++ code:

make test

To build the Python module (and the Cython module), you should use python setuptools:

python setup.py build

If you want to build the Cython module in-place:

python setup.py build_ext --inplace