File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,13 @@ option(LLAVA_BUILD "Build llava shared library and install alongside python pack
8
8
if (SKBUILD_STATE STREQUAL "editable" )
9
9
# Install into the source directory
10
10
# Temporary fix for https://github.com/scikit-build/scikit-build-core/issues/374
11
- set (LLAMA_CPP_PYTHON_INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR} /llama_cpp)
11
+ set (LLAMA_CPP_PYTHON_INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR} /llama_cpp/lib )
12
12
else ()
13
- set (LLAMA_CPP_PYTHON_INSTALL_DIR ${SKBUILD_PLATLIB_DIR} /llama_cpp)
13
+ set (LLAMA_CPP_PYTHON_INSTALL_DIR ${SKBUILD_PLATLIB_DIR} /llama_cpp/lib )
14
14
endif ()
15
15
16
+ message (STATUS "LLAMA_CPP_PYTHON_INSTALL_DIR: ${LLAMA_CPP_PYTHON_INSTALL_DIR} " )
17
+
16
18
if (LLAMA_BUILD)
17
19
set (BUILD_SHARED_LIBS "On" )
18
20
Original file line number Diff line number Diff line change 23
23
# Load the library
24
24
def _load_shared_library (lib_base_name : str ):
25
25
# Construct the paths to the possible shared library names
26
- _base_path = pathlib .Path (os .path .abspath (os .path .dirname (__file__ )))
26
+ _base_path = pathlib .Path (os .path .abspath (os .path .dirname (__file__ ))) / "lib"
27
27
# Searching for the library in the current directory under the name "libllama" (default name
28
28
# for llamacpp) and "llama" (default name for this repo)
29
29
_lib_paths : List [pathlib .Path ] = []
Original file line number Diff line number Diff line change 35
35
# Load the library
36
36
def _load_shared_library (lib_base_name : str ):
37
37
# Construct the paths to the possible shared library names
38
- _base_path = pathlib .Path (os .path .abspath (os .path .dirname (__file__ )))
38
+ _base_path = pathlib .Path (os .path .abspath (os .path .dirname (__file__ ))) / "lib"
39
39
# Searching for the library in the current directory under the name "libllama" (default name
40
40
# for llamacpp) and "llama" (default name for this repo)
41
41
_lib_paths : List [pathlib .Path ] = []
You can’t perform that action at this time.
0 commit comments