nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

add support for virtual environments to CMake #484

Closed TomMelt closed 5 months ago

TomMelt commented 5 months ago

Currently cmake will just search for the system python.

It does not find python inside of a virtual environment (conda or venv)

I use conda and therefore my python distribution is in a virtual environment.

These modifications to the CMakeLists.txt should make the process more general, whilst still working with the system python.

TomMelt commented 5 months ago

@timspainNERSC if you can confirm that it runs on your mac then I will merge this in. I just rebased to develop and it works with the run_simple_example.sh.

timspainNERSC commented 5 months ago

@timspainNERSC if you can confirm that it runs on your mac then I will merge this in. I just rebased to develop and it works with the run_simple_example.sh.

Works for me!