currently this can only interface with polySolver; however, it does work 100% to run a model. The biggest caveat is that at this time there is no way to get the actual results out of the model other than to visualize them in GLVis or use the limited output dumped in the output directory
25 lines
953 B
Meson
25 lines
953 B
Meson
# --- Python Extension Setup ---
|
|
py_installation = import('python').find_installation('python3')
|
|
|
|
py_mod = py_installation.extension_module(
|
|
'serif', # Name of the generated .so/.pyd file (without extension)
|
|
sources: [
|
|
meson.project_source_root() + '/src/python/bindings.cpp',
|
|
meson.project_source_root() + '/src/python/composition/bindings.cpp',
|
|
meson.project_source_root() + '/src/python/const/bindings.cpp',
|
|
meson.project_source_root() + '/src/python/config/bindings.cpp',
|
|
meson.project_source_root() + '/src/python/eos/bindings.cpp',
|
|
meson.project_source_root() + '/src/python/polytrope/bindings.cpp',
|
|
],
|
|
dependencies : [
|
|
pybind11_dep,
|
|
const_dep,
|
|
config_dep,
|
|
composition_dep,
|
|
eos_dep,
|
|
species_weight_dep,
|
|
polysolver_dep,
|
|
],
|
|
cpp_args : ['-UNDEBUG'], # Example: Ensure assertions are enabled if needed
|
|
install : true,
|
|
) |