cosmicrays / hermes

HERMES is a publicly available computational framework for the line of sight integration over galactic radiative processes which creates sky maps in the HEALPix-compatibile format.
GNU General Public License v3.0
23 stars 9 forks source link

pyhermes module not created #45

Closed JordanKoechler closed 10 months ago

JordanKoechler commented 10 months ago

Hi, I am trying to install Hermes on MacOS in a conda environment. After linking the python interpreter in the env at the cmake step, the installation and the tests went well, meaning that the C++ part works correctly. But even if I turn on the -DENABLE_PYTHON flag, PyBind doesn't seem to create the python library.

Do you have an idea on how to solve this issue?

Thanks! Jordan Koechler

adundovi commented 10 months ago

Hi Jordan,

I'm sorry for not following the HERMES issues for a long time. The cmake part which finds Python is now re-done, so you can try again with:

    cmake \
         -DPython3_EXECUTABLE=${PYTHON_BREW_PATH}/bin/python3 \
         -DPython3_INCLUDE_DIRS=${PYTHON_BREW_PATH}/ ... \
         -DPython3_LIBRARIES=${PYTHON_BREW_PATH}/lib/ ... \
         -DENABLE_PYTHON=On \

However, I would recommend using a Docker imager which includes Jupyter and HERMES:

  docker run -it --rm -p 8888:8888 quay.io/cosmicrays/jupyter-hermes:latest