Skip to content

Commit

Permalink
move keyvi source out of src
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmuhs committed Oct 27, 2024
1 parent c7fdbbf commit e49a63c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python-pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.4...3.18)
project(keyvi_pybind11)

add_subdirectory(pybind11)
add_subdirectory(src/keyvi)
add_subdirectory(keyvi_cpp)

FILE(GLOB_RECURSE KEYVI_PYBIND_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} src/*.cpp)
pybind11_add_module(keyvi_pybind11 ${KEYVI_PYBIND_SOURCES})
Expand All @@ -11,4 +11,4 @@ pybind11_add_module(keyvi_pybind11 ${KEYVI_PYBIND_SOURCES})
# define (VERSION_INFO) here.
target_compile_definitions(keyvi_pybind11
PRIVATE VERSION_INFO=${KEYVI_VERSION_INFO})
target_link_libraries(keyvi_pybind11 PRIVATE keyvi)
target_link_libraries(keyvi_pybind11 PRIVATE keyvi)
4 changes: 2 additions & 2 deletions python-pybind/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ include README.md LICENSE pybind11/LICENSE
graft pybind11/include
graft pybind11/tools
graft src
prune src/keyvi/keyvi/tests
global-include CMakeLists.txt *.cmake
recursive-include keyvi_cpp/keyvi *.h *.hpp
global-include CMakeLists.txt *.cmake *.cmake.in
2 changes: 1 addition & 1 deletion python-pybind/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@contextmanager
def symlink_keyvi():
keyvi_cpp_source = "../keyvi"
keyvi_cpp = "src/keyvi"
keyvi_cpp = "keyvi_cpp"
keyvi_cpp_link = os.path.join(keyvi_cpp, "keyvi")
if not os.path.exists(keyvi_cpp_link):
try:
Expand Down

0 comments on commit e49a63c

Please sign in to comment.