File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 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
88if (SKBUILD_STATE STREQUAL "editable" )
99 # Install into the source directory
1010 # 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 )
1212else ()
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 )
1414endif ()
1515
16+ message (STATUS "LLAMA_CPP_PYTHON_INSTALL_DIR: ${LLAMA_CPP_PYTHON_INSTALL_DIR} " )
17+
1618if (LLAMA_BUILD)
1719 set (BUILD_SHARED_LIBS "On" )
1820
Original file line number Diff line number Diff line change 2323# Load the library
2424def _load_shared_library (lib_base_name : str ):
2525 # 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"
2727 # Searching for the library in the current directory under the name "libllama" (default name
2828 # for llamacpp) and "llama" (default name for this repo)
2929 _lib_paths : List [pathlib .Path ] = []
Original file line number Diff line number Diff line change 3535# Load the library
3636def _load_shared_library (lib_base_name : str ):
3737 # 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"
3939 # Searching for the library in the current directory under the name "libllama" (default name
4040 # for llamacpp) and "llama" (default name for this repo)
4141 _lib_paths : List [pathlib .Path ] = []
You can’t perform that action at this time.
0 commit comments