Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 2c2b4bf

Browse files
committed
fix: python windows
1 parent 9dc157d commit 2c2b4bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cortex-cpp/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.5)
22
project(cortex-cpp C CXX)
33

44
include(engines/cortex.llamacpp/engine.cmake)
5-
include(engines/cortex.python/engine.cmake)
5+
if(NOT LLAMA_CUDA)
6+
include(engines/cortex.python/engine.cmake)
7+
endif()
68
include(CheckIncludeFileCXX)
79

810
check_include_file_cxx(any HAS_ANY)

cortex-cpp/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ endif
106106
ifeq ($(OS),Windows_NT)
107107
@powershell -Command "cp -r build\engines\cortex.python cortex-cpp\engines\;"
108108
@powershell -Command "cd cortex-cpp;..\..\.github\scripts\e2e-test-python-windows.bat cortex-cpp.exe ..\..\.github\scripts\$(PYTHON_FILE_EXECUTION_PATH);"
109-
@powershell -Command "rm *.txt;"
110-
@powershell -Command "ls .\engines;"
111-
@powershell -Command "cd engines; rm -r cortex.python;"
112-
@powershell -Command "ls;"
109+
@powershell -Command "cd .\cortex-cpp\; rm *.txt;"
110+
@powershell -Command "mkdir python-temp; cd .\cortex-cpp\engines; Move-Item -Path .\cortex.python -Destination ..\..\python-temp;"
113111
else ifeq ($(shell uname -s),Linux)
114112
@cp -rf build/engines/cortex.python cortex-cpp/engines/; \
115113
cd cortex-cpp; \

0 commit comments

Comments
 (0)