Skip to content

Commit

Permalink
avoid trying to load sonnet and graph_nets if not installed
Browse files Browse the repository at this point in the history
Co-Authored-By: moneta <lorenzo.moneta@cern.ch>
  • Loading branch information
sanjibansg and lmoneta committed Aug 25, 2023
1 parent dbfde4b commit 1b8b84c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bindings/pyroot/pythonizations/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ endif()
# SOFIE-GNN pythonizations
if (dataframe AND tmva)
if(NOT MSVC OR CMAKE_SIZEOF_VOID_P EQUAL 4 OR win_broken_tests AND PYTHON_VERSION_MAJOR_Development_Main EQUAL 3 )
ROOT_ADD_PYUNITTEST(pyroot_pyz_sofie_gnn sofie_gnn.py PYTHON_DEPS numpy sonnet graph_nets)
find_python_module(sonnet QUIET)
find_python_module(graph_nets QUIET)
if (PY_SONNET_FOUND AND PY_GRAPH_NETS_FOUND)
ROOT_ADD_PYUNITTEST(pyroot_pyz_sofie_gnn sofie_gnn.py PYTHON_DEPS numpy sonnet graph_nets)
endif()
endif()
endif()

Expand Down

0 comments on commit 1b8b84c

Please sign in to comment.