Installation¶
Python¶
A wheel might be available for your system on PyPI. Source distributions are provided as well.
pip install dwave-qbsolv
Alternatively, you can build the library with setuptools.
pip install -r python/requirements.txt
python setup.py install
C¶
To build the C library use cmake to generate a build command for your system. On Linux the commands would be something like this:
mkdir build; cd build
cmake ..
make
To build the command line interface turn the cmake option QBSOLV_BUILD_CMD on. The command line option for cmake to do this would be -DQBSOLV_BUILD_CMD=ON. To build the tests turn the cmake option QBSOLV_BUILD_TESTS on. The command line option for cmake to do this would be -DQBSOLV_BUILD_TESTS=ON.