[+] add env for meson_setup

This commit is contained in:
Siarhei Siniak 2025-03-13 12:04:54 +03:00
parent 9ac87fb3df
commit e06a1f4007
4 changed files with 15 additions and 3 deletions

@ -1 +1 @@
Subproject commit 1498aa5e0320bda843f18fdd81b6238a0352e34a Subproject commit e1778f22d5f5ab5c1025191dd7faa35c653ce45b

@ -390,6 +390,7 @@ class CLI(abc.ABC):
project_name: str, project_name: str,
force: bool, force: bool,
argv: Optional[list[str]] = None, argv: Optional[list[str]] = None,
env: Optional[dict[str, str]] = None,
# third_party_roots: Optional[list[pathlib.Path]] = None, # third_party_roots: Optional[list[pathlib.Path]] = None,
) -> None: ) -> None:
project = self.projects[project_name] project = self.projects[project_name]
@ -397,6 +398,11 @@ class CLI(abc.ABC):
if argv is None: if argv is None:
argv = [] argv = []
if env is None:
env = dict()
logger.info(dict(env=env))
if force: if force:
if (project.build_dir / 'meson').exists(): if (project.build_dir / 'meson').exists():
logger.info(dict(action='removing build dir', path=project.build_dir / 'meson')) logger.info(dict(action='removing build dir', path=project.build_dir / 'meson'))
@ -424,4 +430,7 @@ class CLI(abc.ABC):
logger.info(dict(cmd=cmd)) logger.info(dict(cmd=cmd))
subprocess.check_call(cmd) subprocess.check_call(
cmd,
env=dict(list(os.environ.items())) | env,
)

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

BIN
releases/whl/online_fxreader_pr34-0.1.4.16-py3-none-any.whl (Stored with Git LFS) Normal file

Binary file not shown.