Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a more convenient way to copy the runtime files #71

Open
jtpio opened this issue Apr 25, 2023 · 1 comment
Open

Provide a more convenient way to copy the runtime files #71

jtpio opened this issue Apr 25, 2023 · 1 comment

Comments

@jtpio
Copy link
Contributor

jtpio commented Apr 25, 2023

  • 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
Copy link
Contributor Author

jtpio commented Apr 25, 2023

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

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

No branches or pull requests

1 participant