diff --git a/backend/src/__init__.py b/backend/src/__init__.py new file mode 100644 index 00000000..6d523614 --- /dev/null +++ b/backend/src/__init__.py @@ -0,0 +1,7 @@ + +# import submodules so that they can be easily accessed +import elasticapp._linalg +import elasticapp._rotations +import elasticapp._PyTags +import elasticapp._PyArrays +import elasticapp._PyCosseratRods diff --git a/backend/src/meson.build b/backend/src/meson.build index 0c8fa76d..8b1e6290 100644 --- a/backend/src/meson.build +++ b/backend/src/meson.build @@ -1,3 +1,9 @@ +# first bundle all pure-python files +python_sources = files( + '__init__.py', +) +py.install_sources(python_sources, subdir: package) + example_1 = py.extension_module( 'example_1', sources: ['example_1.cpp'],