- Generate wheels for your distribution:
pip wheel .
this will result in some like TA_Lib-0.4.10-cp36-cp36m-macosx_10_7_x86_64.whl
- Install
delocate
(https://pypi.org/project/delocate/):
pip install delocate
- Make sure
delocate
can find the linked libraries:
delocate-listdeps TA_Lib-0.4.10-cp36-cp36m-macosx_10_7_x86_64.whl
- It so, patch the wheel file and get a statically-linked wheel!:
delocate-wheel TA_Lib-0.4.10-cp36-cp36m-macosx_10_7_x86_64.whl