empack icon indicating copy to clipboard operation
empack copied to clipboard

Provide a more convenient way to copy the runtime files

Open jtpio opened this issue 2 years ago • 1 comments

  • empack version: 3.0.0
  • Operating System: Fedora 37
  • Compiler: N/A

Description

When packing an environment for the web one of the required steps is to copy the runtime files (for example pyjs_runtime_browser.js) from $PREFIX/lib_js/pyjs. For example with:

cp ~/micromamba/envs/pyjs-web-env/lib_js/pyjs/pyjs_runtime_browser.* build/

Wondering if there could be a way to make that step more convenient. Maybe it could directly be done as part of the empack pack env command via a new (optional) CLI flag?

What I Did

This came up while iterating a bit on https://github.com/emscripten-forge/sample-python-repl.

jtpio avatar Apr 25 '23 11:04 jtpio

For reference pyjs_code_runner also seems to be doing the file copy here:

https://github.com/emscripten-forge/pyjs-code-runner/blob/e4fb80073731fe9b0f773f29637a54e7765f6acd/pyjs_code_runner/run.py#L49-L66

jtpio avatar Apr 25 '23 11:04 jtpio