A drop-in replacement library for adapy created to improve performance using c++. The compilation and binding methods are based on the nanobind-minimal repo
First install the pre-requisites for both occt and nanobind + build requirements from conda-forge.
mamba env update -f environment.build.yml --prune
Activate the environment and install the package in editable mode.
pip install --no-build-isolation -e .
Installing as conda package
mamba mambabuild . -c conda-forge --python 3.11 --override-channels
mamba install --use-local ada-cpp
You can use the presets in the CMakePresets.json file.
But first you must create a .env.json
file (which will be ignored by git) where you point to
the conda env environment.build.yml
. The .env.json file should look like this,
where you fill in the path to your conda env as the "PREFIX" value.
{
"version": 6,
"configurePresets": [
{
"name": "env-vars",
"hidden": true,
"environment": {
"PREFIX": "C:/miniforge3/envs/ada-cpp"
}
}
]
}
Todo