Skip to content

Commit 1b62eb9

Browse files
committed
指定Python3_EXECUTABLE
1 parent 01a4f5c commit 1b62eb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

unity/cli/test.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ export async function dotnetTest(cwd, backend, filter = '', thread_safe = false)
259259
});
260260
dlls = dlls.concat(nodedlls);
261261

262-
//const pyInfo = tryGetPythonFromPath();
262+
const pyInfo = tryGetPythonFromPath();
263263

264264
const pydlls = await runPuertsMake(join(cwd, '../../native/papi-python'), {
265265
platform: getPlatform(),
266266
config: "Debug",
267267
arch: process.arch,
268-
thread_safe: thread_safe
269-
//cmake_args: (pyInfo && pyInfo.exe) ? `-DPython3_EXECUTABLE="${pyInfo.exe}"` : undefined
268+
thread_safe: thread_safe,
269+
cmake_args: (pyInfo && pyInfo.exe) ? `-DPython3_EXECUTABLE="${pyInfo.exe}"` : undefined
270270
});
271271
dlls = dlls.concat(pydlls);
272272

unity/native/papi-python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ endif ()
1919

2020
add_subdirectory(../puerts ${CMAKE_CURRENT_BINARY_DIR}/puerts)
2121

22-
find_package(Python3 COMPONENTS Interpreter REQUIRED)
22+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
2323

2424
include_directories(
2525
${CMAKE_SOURCE_DIR}

0 commit comments

Comments
 (0)