bernhard-42 / ocp-addons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building ocp-addons

Clone the repository

git clone https://github.com/jdegenstein/ocp-addons.git
cd ocp-addons

Create the development environment

The Python environment

mamba env create -f env.yml
mamba activate ocp-addons

OS specific configurations

  • Linux

    sudo apt-get update
    sudo apt-get install freetype* libfreetype6-dev libgl1-mesa-glx
    mamba install -c conda-forge gxx_linux-64=12

Build ocp-addons

Build the pybind11 wheel

python -m build -n

Relocate the libraries in the wheel

  • Linux

    auditwheel repair --plat manylinux_2_35_x86_64 dist/ocp_addons-*.whl

Test the library

cd ..
python test.py

About

License:Apache License 2.0


Languages

Language:C++ 80.7%Language:Python 19.3%