From 8fcc91b7dfc932549e0154056d87938dd4675068 Mon Sep 17 00:00:00 2001 From: amritagos Date: Thu, 9 Nov 2023 13:28:25 +0000 Subject: [PATCH] Installing as a package --- README.md | 12 ++++++++++++ examples/python/run.py | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 examples/python/run.py diff --git a/README.md b/README.md index 5e377b3..7528fac 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,15 @@ ## About Library for home-grown neural networks + +## Installation + +Assuming you are using some kind of `conda` environment, here is how you can install `robbie` and use `robbielib` in `python`. + +```bash +meson setup build --prefix $CONDA_PREFIX +meson compile -C build +meson install -C build +``` + +Now you can run import `robbielib` from anywhere if your conda environment is activated. diff --git a/examples/python/run.py b/examples/python/run.py new file mode 100644 index 0000000..c3ff553 --- /dev/null +++ b/examples/python/run.py @@ -0,0 +1,3 @@ +from robbielib import add + +print(add(1,6)) \ No newline at end of file