Skip to content

Commit

Permalink
setup.py: fix missing commas, change lib name on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Jan 15, 2025
1 parent 7d4a606 commit a4c9473
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

platform_supported = False

lib_talib_name = 'ta-lib' # the name as of TA-Lib 0.6.1

if any(s in sys.platform for s in ['darwin', 'linux', 'bsd', 'sunos']):
platform_supported = True
include_dirs = [
Expand All @@ -43,16 +45,16 @@

elif sys.platform == "win32":
platform_supported = True
lib_talib_name = 'ta_libc_cdr'
lib_talib_name = 'ta-lib-static'
include_dirs = [
r"c:\ta-lib\c\include",
r"c:\Program Files\TA-Lib\include"
r"c:\Program Files (x86)\TA-Lib\include"
r"c:\Program Files\TA-Lib\include",
r"c:\Program Files (x86)\TA-Lib\include",
]
library_dirs = [
r"c:\ta-lib\c\lib"
r"c:\Program Files\TA-Lib\lib"
r"c:\Program Files (x86)\TA-Lib\lib"
r"c:\ta-lib\c\lib",
r"c:\Program Files\TA-Lib\lib",
r"c:\Program Files (x86)\TA-Lib\lib",
]

if 'TA_INCLUDE_PATH' in os.environ:
Expand All @@ -70,8 +72,6 @@
except ImportError:
has_cython = False

lib_talib_name = 'ta-lib' # the name as of TA-Lib 0.6.1

for path in library_dirs:
try:
files = os.listdir(path)
Expand Down

0 comments on commit a4c9473

Please sign in to comment.