CAMFR
CAMFR copied to clipboard
Create statically-linked version for MacOS Installer
From @demisjohn on February 28, 2018 8:17
Current implementation requires the user to build/install many MacPorts packages. For example, boost-python-mt.dylib
must be found at /opt/local/lib/libboost_python-mt.dylibin order for python to load
_camfr.so` properly.
Would prefer to statically link these libraries, so that _camfr.so
contains the required libs, allowing for a MacOS "installer" to simply put the camfr/
module folder into the system site-packages
and it works, without the user needing to install anything on macports. Also, link against any MacOS dynamic system libraries, or else build them into the module statically.
How do you write setup.py
to do that?
Need to install the -static
versions of each dependency from MacPorts. Not sure they all have that variant ready to go.