Skip to content

pysodium #4124

Closed Answered by kentbull
kentbull asked this question in Packages
Oct 8, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

I was able to get a workaround functional for pysodium by modifying the DYLD_LIBRARY_PATH and LD_LIBRARY_PATH variables as well as symlinking to the correct binary in a libsodium library directory in my repository.

This works because the entire app repo is copied to the app cache directory of ~/Library/Caches/myapp/app/ when running the app from the .dmg I build after making flet build macos.

Here's sample code of what I had to do to get pysodium to load my libsodium dynamic library from the libsodium/ directory in my repository.

################################# Custom Libsodium Loader ############################################
# This code has to be in the main module to avoid a partia…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kentbull
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants