Skip to content
Discussion options

You must be logged in to vote

Is this supported, similar to linking a shared library in C++?

We don't yet support compiling to individual modules/library in the same way as C++. But you can generate shared libraries with Codon via codon build -lib ... that you can then load from another Codon program (just remember to mark the public functions with @export).

If I want to distribute my Codon package in a way similar to a Python module (e.g., as a .whl file), is it correct that, for now, the only available method is to share the source code folder and require users to set the CODON_PATH in order to use it?

Yes that's currently the best solution.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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