Skip to content
/ adacpp Public

A drop-in replacement library for adapy functions created to improve performance using c++

Notifications You must be signed in to change notification settings

Krande/adacpp

Repository files navigation

Ada-CPP

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

Installation

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 .

Conda Build install

Installing as conda package

mamba mambabuild . -c conda-forge --python 3.11 --override-channels
mamba install --use-local ada-cpp

Local IDE development

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"
      }
    }
  ]
}

Performance metrics

Todo

About

A drop-in replacement library for adapy functions created to improve performance using c++

Resources

Stars

Watchers

Forks

Packages

No packages published