Skip to content

Commit

Permalink
add auto-import logic to elasticapp
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Aug 4, 2024
1 parent 579c700 commit 151a260
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/src/__init__.py
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions backend/src/meson.build
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down

0 comments on commit 151a260

Please sign in to comment.