From 30f84d00c99ef62fa45d02b4b6eae9512ddd5af1 Mon Sep 17 00:00:00 2001 From: stevenstetzler Date: Fri, 2 Feb 2024 12:35:02 -0800 Subject: [PATCH] Build instructions for KBMOD in conda/virtual environments --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4b77a270..c98ef01b 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,12 @@ cmake --build src/kbmod --clean-first ``` To rebuild, it is sufficient to just re-run the `cmake --build` command. Optionally, invoke the cmake generated `Makefile` as `make clean && make` from the `src/kbmod` directory. +If installing KBMOD into an activated conda/virtual environment, it may be necessary to specify a value for the the CMake `Python3_FIND_VIRTUALENV` configuration to allow CMake to find and use the Python installation in the conda/virtual environment. +``` +cmake -DPython3_FIND_VIRTUALENV=ONLY B src/kbmod -S . +cmake --build src/kbmod --clean-first +``` + If you want to build the documentation you must have pandoc which seems not installable by pip. See [Pandoc](https://pandoc.org/installing.html), or if you are using conda: ```