Skip to content

Linking against python #89

Answered by jralls
oli747 asked this question in Q&A
Aug 11, 2023 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

Yes, if you need to use Python in your app you absolutely must build it and bundle that. It's pretty painless, just add pygments to your modules list. You need pygments instead of python3 because once you include Python in the build everything that uses python uses that python and gtk-docs needs pygments for its code-highlighting feature.

Figuring out what to bundle is a little more challenging because you need to figure out what the plugin uses. It's easy enough to include libpython.dylib and the contents of $PREFIX/lib/python3.11/, but do you also need the python interpreter? There's also the problem of linkage: The bundler is hardwired to use @executable_path/../Resources/lib/. If the …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@oli747
Comment options

@jralls
Comment options

Answer selected by oli747
Comment options

You must be logged in to vote
2 replies
@jralls
Comment options

@oli747
Comment options

Comment options

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

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