A python wrapper for libuuu
.
Supported Python versions: 3.9 or newer.
To build the project you first need to build libuuu dynamic libraries for your operating system, or download them. In this section, manual build is described.
We first install vcpkg
which is a C++ library manager for Windows, Linux, and MacOS. Then we set some necessary environment variables, how you set them depends on your operating system, but it is basically the same.
Downloading vcpkg and setting up environment variables
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
export VCPKG_ROOT=$(pwd)
export PATH=$VCPKG_ROOT:$PATH
./bootstrap-vcpkg.sh
Dependencies on Linux (Ubuntu)
sudo apt-get install gcc cmake ninja-build autotools-dev automake autoconf libudev-dev
Dependencies on MacOS
brew install ninja cmake autoconf automake libtool
Build
cd ../wrapper
cmake --preset=unix #Needs to have vcpkg in PATH & VCPKG_ROOT set.
cmake --build build
Downloading vcpkg and setting up environment variables
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
$env:VCPKG_ROOT = $PWD.Path
$env:Path = $env:VCPKG_ROOT + ';' + $env:Path
./bootstrap-vcpkg.bat
Dependencies on Windows
choco install ninja llvm cmake
Build
cmake --preset=windows -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build
We just need to create folder ./wrapper/libuuu/lib
and move the dynamic libraries there.
mkdir ./libuuu/lib
cp build/*.dll ./libuuu/lib # *.so for Linux, *.dylib for MacOS
pip install -e .