Build from source#
Building from source is required to use the latest features or to work on new features or pull requests. The process is simple.
Use Git to fetch the latest version.
git clone --depth 10 https://github.com/isaksamsten/wildboar.git
Install a c-compiler for your operating system.
First install build tools for Visual Studio 2019
Note
You do not need to install Visual Studio 2019. You only need the Build Tools for Visual Studio 2019 which you can find under All downloads and then Tools for Visual Studio 2019.
For 64-bit Python, configure the build environment by running the following commands in cmd console.
SET DISTUTILS_USE_SDK=1 "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
Note
Replace the path with the install path of Visual Studio Build tools.
Install the macOS command line tools
xcode-select --install
Install build dependencies for your distribution.
For Debian-based operating systems, e.g. Ubuntu:
apt install build-essential python3-dev python3-pip
Optionally create a new virtual environment.
Install the required Python-packages using pip
pip install -r requirements.txt
Build the project in editable mode to ease development
pip install --verbose --no-build-isolation --editable .
Alternatively, if you just want to install Wildboar run:
pip install .
Note
The environment variable
WILDBOAR_BUILD
is used to control arguments to the build environment. SettingWILDBOAR_BUILD=optimized
can build a version optimized for the current processor architecture.