scripts: twister: set Python3_EXECUTABLE when calling cmake
When twister calls cmake, set Python3_EXECUTABLE so things work as expected when using non-global python Signed-off-by: Mara Furland <mara@fur.land>
This commit is contained in:
parent
8bce5230fd
commit
7ac41a1b24
2 changed files with 5 additions and 1 deletions
|
@ -20,6 +20,7 @@ from multiprocessing import Lock, Process, Value
|
|||
from multiprocessing.managers import BaseManager
|
||||
from typing import List
|
||||
from packaging import version
|
||||
import pathlib
|
||||
|
||||
from colorama import Fore
|
||||
from domains import Domains
|
||||
|
@ -363,7 +364,8 @@ class CMake:
|
|||
f'-DTC_NAME={self.instance.testsuite.name}',
|
||||
f'-D{warning_command}={warnings_as_errors}',
|
||||
f'-DEXTRA_GEN_EDT_ARGS={gen_edt_args}',
|
||||
f'-G{self.env.generator}'
|
||||
f'-G{self.env.generator}',
|
||||
f'-DPython3_EXECUTABLE={pathlib.Path(sys.executable).as_posix()}'
|
||||
]
|
||||
|
||||
# If needed, run CMake using the package_helper script first, to only run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue