From e06a1f4007dfd4af963722352fa6cb3767d706a0 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 13 Mar 2025 12:04:54 +0300 Subject: [PATCH] [+] add env for meson_setup --- deps/com.github.aiortc.aiortc | 2 +- python/online/fxreader/pr34/commands_typed/cli.py | 11 ++++++++++- python/pyproject.toml | 2 +- .../online_fxreader_pr34-0.1.4.16-py3-none-any.whl | 3 +++ 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 releases/whl/online_fxreader_pr34-0.1.4.16-py3-none-any.whl diff --git a/deps/com.github.aiortc.aiortc b/deps/com.github.aiortc.aiortc index 1498aa5..e1778f2 160000 --- a/deps/com.github.aiortc.aiortc +++ b/deps/com.github.aiortc.aiortc @@ -1 +1 @@ -Subproject commit 1498aa5e0320bda843f18fdd81b6238a0352e34a +Subproject commit e1778f22d5f5ab5c1025191dd7faa35c653ce45b diff --git a/python/online/fxreader/pr34/commands_typed/cli.py b/python/online/fxreader/pr34/commands_typed/cli.py index 6b78207..ab899a2 100644 --- a/python/online/fxreader/pr34/commands_typed/cli.py +++ b/python/online/fxreader/pr34/commands_typed/cli.py @@ -390,6 +390,7 @@ class CLI(abc.ABC): project_name: str, force: bool, argv: Optional[list[str]] = None, + env: Optional[dict[str, str]] = None, # third_party_roots: Optional[list[pathlib.Path]] = None, ) -> None: project = self.projects[project_name] @@ -397,6 +398,11 @@ class CLI(abc.ABC): if argv is None: argv = [] + if env is None: + env = dict() + + logger.info(dict(env=env)) + if force: if (project.build_dir / 'meson').exists(): 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)) - subprocess.check_call(cmd) + subprocess.check_call( + cmd, + env=dict(list(os.environ.items())) | env, + ) diff --git a/python/pyproject.toml b/python/pyproject.toml index 9d4f67d..b2a3533 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'online.fxreader.pr34' -version = '0.1.4.15' +version = '0.1.4.16' dependencies = [ #"-r requirements.txt", diff --git a/releases/whl/online_fxreader_pr34-0.1.4.16-py3-none-any.whl b/releases/whl/online_fxreader_pr34-0.1.4.16-py3-none-any.whl new file mode 100644 index 0000000..19b41da --- /dev/null +++ b/releases/whl/online_fxreader_pr34-0.1.4.16-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d9faa0956da20586cc9522b3dfc7243a048a7e4ad7eb6b79cc73a698a157b1f +size 68556