Build Info:
NGen version: 0.1.0
Python active
Embedded interpreter version: 3.10.12
Python Environment Info:
VIRTUAL_ENV environment variable: (not set)
Discovered venv: None
System paths:
/home/flipl/miniconda3/lib/python310.zip
/home/flipl/miniconda3/lib/python3.10
/home/flipl/miniconda3/lib/python3.10/lib-dynload
/home/flipl/.local/lib/python3.10/site-packages
/home/flipl/miniconda3/lib/python3.10/site-packages
/home/flipl/cfe_py
We (@RY4GIT and @taddyb) attempted to integrate our own Python model into NGen using the BMI Python. However, we encountered the following issues.
Current behavior
VIRTUAL_ENVneeds to be defined, but we couldn't find where in ngen codebase defines it (see the screenshot)Expected behavior
Steps to replicate behavior
git clone https://github.com/NWC-CUAHSI-Summer-Institute/cfe_py/tree/add-bmi2conda env create -f environment.ymlconda activate cfecmake -B /ngen -S . && cmake --build . --target ngen), turn on the debugging option usingtarget_compile_options (ngen PUBLIC -g)in the root CMakeList.txt, as described here./ngen, and it prints the following. You can see the issue described in the current behavior, where VIRTUAL_ENV is not set. I also tried building ngen outside of venv (i.e., conda base), but it was the same.Some other info