Skip to content

file_packager.py: Enable to run without additional envvar setup for basic usage#26630

Draft
ktock wants to merge 3 commits intoemscripten-core:mainfrom
ktock:file-packager-deps
Draft

file_packager.py: Enable to run without additional envvar setup for basic usage#26630
ktock wants to merge 3 commits intoemscripten-core:mainfrom
ktock:file-packager-deps

Conversation

@ktock
Copy link
Copy Markdown
Contributor

@ktock ktock commented Apr 6, 2026

Related to #21529

file_packager.py requires setting up additional environment variables even when the user doesn't specify flags that depend on emcc (e.g. --obj-output).

file_packager: error: LLVM_ROOT not set in config (/qemu/build/wasm/emscripten/.emscripten), and clang not found in PATH

This commit solves this issue by removing the dependency on shared.py from file_packager.py unless the user specifies the flag that depends on them. This allows the user to use the script without setting up the additional environment variable for basic usage.

ktock added 3 commits April 6, 2026 08:09
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
@ktock ktock marked this pull request as draft April 6, 2026 10:58
@sbc100 sbc100 changed the title file_pacakger.py: Enable to run without additional envvar setup for basic usage file_packager.py: Enable to run without additional envvar setup for basic usage Apr 6, 2026
@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Apr 6, 2026

My plan for making this work is to make all the initialization for things like shared.py happen after import time.

I started work in #25851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants