From 8455b12163c28fd2099905cacf9b610630b3caf8 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 11 Dec 2023 21:27:06 +0100 Subject: [PATCH] Wrap in dir --- CMakeLists.txt | 6 +++--- module/__init__.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 module/__init__.py diff --git a/CMakeLists.txt b/CMakeLists.txt index 465da32..f72995e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -301,10 +301,10 @@ if (ENABLE_PYTHON_WRAPPER) SWIG_LINK_LIBRARIES(voxec libvoxec ${Python_LIBRARIES}) endif() - INSTALL(FILES "${CMAKE_BINARY_DIR}/voxec.py" - DESTINATION "${Python_SITEARCH}/") + INSTALL(FILES "${CMAKE_BINARY_DIR}/voxec.py" "${CMAKE_CURRENT_SOURCE_DIR}/module/__init__.py" + DESTINATION "${Python_SITEARCH}/voxec/") INSTALL(TARGETS _voxec - DESTINATION "${Python_SITEARCH}/") + DESTINATION "${Python_SITEARCH}/voxec/") endif() if (ENABLE_TESTS) diff --git a/module/__init__.py b/module/__init__.py new file mode 100644 index 0000000..e826790 --- /dev/null +++ b/module/__init__.py @@ -0,0 +1 @@ +from .voxec import * \ No newline at end of file