[+] add env for ninja

This commit is contained in:
Siarhei Siniak 2025-03-11 14:14:13 +03:00
parent 9e117048dc
commit acf1850d70
3 changed files with 17 additions and 8 deletions

@ -1 +1 @@
Subproject commit 41fb87dc48ca2b0710e8489fc2de64f1fc82cf15 Subproject commit 29ffbc8dbd295ffbfe416dc28f5f7e828d78d7b2

@ -322,18 +322,27 @@ class CLI(abc.ABC):
self, self,
project_name: str, project_name: str,
argv: Optional[list[str]] = None, argv: Optional[list[str]] = None,
env: Optional[dict[str, str]] = None,
) -> None: ) -> None:
project = self.projects[project_name] project = self.projects[project_name]
if argv is None: if argv is None:
argv = [] argv = []
subprocess.check_call([ if env is None:
shutil_which('ninja', True), env = dict()
'-C',
str(project.build_dir / 'meson'), logger.info(dict(env=env))
*argv,
]) subprocess.check_call(
[
shutil_which('ninja', True),
'-C',
str(project.build_dir / 'meson'),
*argv,
],
env=dict(list(os.environ.items())) | env,
)
def meson_test( def meson_test(
self, self,

@ -1,6 +1,6 @@
[project] [project]
name = 'online.fxreader.pr34' name = 'online.fxreader.pr34'
version = '0.1.4.14' version = '0.1.4.15'
dependencies = [ dependencies = [
#"-r requirements.txt", #"-r requirements.txt",