Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static link TA-LIB on Linux #628

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

static link TA-LIB on Linux #628

wants to merge 8 commits into from

Conversation

elsejj
Copy link

@elsejj elsejj commented Dec 4, 2023

Static linking TA-LIB makes ta-lib-python a self-contained package that does not require TA-LIB to be installed on the target system. This makes it easier to deploy ta-lib-python.

This patch adds several Makefile targets.

  • The new talib_static target downloads and compiles a static version of TA-LIB to the current directory, for use by other build targets.
  • Targets with the suffix _static added to existing build targets link to the static version of TA-LIB.

To support building ta-lib-python with a static version of TA-LIB, the setup.py script has been updated to add a new variable named lib_talib_static_lib. This variable is set to the file name of the static library if the environment variable TA_LINK_STATIC is enabled. The corresponding settings are then made during build_extensions to link the static library.

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

Successfully merging this pull request may close these issues.

1 participant