Skip to content

Is there a way to generate self-contained python source without dependencies from hy libraries? #2103

Answered by scauligi
glyh asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what hy2c is, but you can try starting with the output of hy2py and then manually removing imports (or copy function defs out of Hy's standard lib if you're allowed to do that).
Unfortunately, the current version of Hy can't automatically generate pure standalone python code.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@glyh
Comment options

Answer selected by glyh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants