hy icon indicating copy to clipboard operation
hy copied to clipboard

Recursive `hy2py`

Open Kodiologist opened this issue 3 years ago • 2 comments

We could give hy2py a recursive mode that goes through a source tree and saves a matching Python file for each Hy file, if an up-to-date one doesn't already exist. Optionally, it could delete all such Python files and bytecode first, in order to ensure all macro expansions are fully up to date.

I'm not sure how often this would be useful in practice, but it seems like an obvious feature to have.

Kodiologist avatar May 28 '21 20:05 Kodiologist

i started implementing this, but i faced a problem:

when i pass actual module name to hy_compile it not just compile hy to py but also evaluates compiled py

dm9pZCAq avatar Jan 15 '22 19:01 dm9pZCAq

hmm, i think this is ok when it is part of module

dm9pZCAq avatar Jan 16 '22 15:01 dm9pZCAq