11. Building Krptn
In case there aren’t any pre-built wheels on PyPI for your platform, you may need to build from source.
11.1. Building from source
To build Krptn, you will need:
A C++ compiler
Build tools required by VCPKG
You have two options from now. But first, please try to pip install krptn
to avoid building from source. Only build from source if you need to (if there aren’t any pre-built wheels on PyPI for your platform).
11.1.1. Using Git
After cloning the repo from GitHub (and checking out your version using git tags), please checkout all submodules.
After that, you will need to run come commands.
The first command will install vcpkg, and the second will install Krptn’s dependencies from vcpkg.json
file which is at the root of the repository.
Ethier:
./vcpkg/bootstrap-vcpkg.bat
./vcpkg/vcpkg install --triplet x64-windows-static
(the above is for Windows)
Or:
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install --triplet x64-linux
(for Linux)
Or:
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install --triplet x64-osx
(For OSX)
Finally, you can:
pip install .
This will install Krptn.