Files
SERiF/build-python/meson.build
Emily Boudreaux 6bcd9d2e69 build(build-python): added sources for const and global module
build-python meson.build includes (and must include) all relevant source
2025-05-05 12:00:08 -04:00

20 lines
784 B
Meson

# --- Python Extension Setup ---
py_installation = import('python').find_installation('python3')
py_mod = py_installation.extension_module(
'fourdsse_bindings', # 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',
],
dependencies : [
pybind11_dep,
const_dep,
composition_dep,
species_weight_dep
],
cpp_args : ['-UNDEBUG'], # Example: Ensure assertions are enabled if needed
install : true,
subdir: 'fourdstar' # Optional: Install the module inside a 'fourdsse' Python package directory
)