pip installation is recommended for platforms with precompiled wheels posted to pypi. Source distributions are provided as well.
pip install minorminer
To install from this repository, run the setuptools script.
pip install cython==0.27 python setup.py install # optionally, run the tests to check your build pip install -r tests/requirements.txt python -m nose . --exe
The CMakeLists.txt in the root of this repo will build the library and optionally run a series of tests. On linux the commands would be something like this:
mkdir build; cd build cmake .. make
To build the tests turn the cmake option MINORMINER_BUILD_TESTS on. The command line option for cmake to do this would be -DMINORMINER_BUILD_TESTS=ON.
C++11 programs should be able to use this as a header-only library. If your project is using CMake this library can be used fairly simply; if you have checked out this repo as externals/minorminer in your project you would need to add the following lines to your CMakeLists.txt
add_subdirectory(externals/minorminer) # After your target is defined target_link_libraries(your_target minorminer pthread)