Skip to content

Commit

Permalink
fix: python windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vansangpfiev committed May 27, 2024
1 parent 9dc157d commit 2c2b4bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cortex-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.5)
project(cortex-cpp C CXX)

include(engines/cortex.llamacpp/engine.cmake)
include(engines/cortex.python/engine.cmake)
if(NOT LLAMA_CUDA)
include(engines/cortex.python/engine.cmake)
endif()
include(CheckIncludeFileCXX)

check_include_file_cxx(any HAS_ANY)
Expand Down
6 changes: 2 additions & 4 deletions cortex-cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,8 @@ endif
ifeq ($(OS),Windows_NT)
@powershell -Command "cp -r build\engines\cortex.python cortex-cpp\engines\;"
@powershell -Command "cd cortex-cpp;..\..\.github\scripts\e2e-test-python-windows.bat cortex-cpp.exe ..\..\.github\scripts\$(PYTHON_FILE_EXECUTION_PATH);"
@powershell -Command "rm *.txt;"
@powershell -Command "ls .\engines;"
@powershell -Command "cd engines; rm -r cortex.python;"
@powershell -Command "ls;"
@powershell -Command "cd .\cortex-cpp\; rm *.txt;"
@powershell -Command "mkdir python-temp; cd .\cortex-cpp\engines; Move-Item -Path .\cortex.python -Destination ..\..\python-temp;"
else ifeq ($(shell uname -s),Linux)
@cp -rf build/engines/cortex.python cortex-cpp/engines/; \
cd cortex-cpp; \
Expand Down

0 comments on commit 2c2b4bf

Please sign in to comment.