[issue43964] ctypes CDLL search path issue on MacOS

Carlo Cabrera report at bugs.python.org
Sat Jun 26 15:26:05 EDT 2021


Carlo Cabrera <carlo.antonio.cabrera at gmail.com> added the comment:

Re option 3: relying on `DYLD_LIBRARY_PATH` or `DYLD_FRAMEWORK_PATH` isn't a great solution either because of SIP. It's can get impractical to use in many standard Makefile-based build systems, for example. (cf. https://github.com/qmk/qmk_cli/issues/60, https://github.com/Homebrew/discussions/discussions/1737) I imagine it can get quite vexing to set these variables but find them to not have the effect you expected them to.

One workaround for the example above would be to compile your own `make` program (or use one from a package manager) so that SIP doesn't sanitise your environment, but I imagine that's not an ideal solution either.

----------
nosy: +ccabrera

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43964>
_______________________________________


More information about the Python-bugs-list mailing list