Skip to content

Commit 253f714

Browse files
committed
setup.py: make TA_INCLUDE_PATH and TA_LIBRARY_PATH override
This will make it easier to have, for example, both intel and arm versions co-existing on macOS.
1 parent 5cfdac8 commit 253f714

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@
5050
library_dirs = [r"c:\ta-lib\c\lib"]
5151

5252
if 'TA_INCLUDE_PATH' in os.environ:
53-
paths = os.environ['TA_INCLUDE_PATH'].split(os.pathsep)
54-
include_dirs.extend(path for path in paths if path)
53+
include_dirs = os.environ['TA_INCLUDE_PATH'].split(os.pathsep)
5554

5655
if 'TA_LIBRARY_PATH' in os.environ:
57-
paths = os.environ['TA_LIBRARY_PATH'].split(os.pathsep)
58-
library_dirs.extend(path for path in paths if path)
56+
library_dirs = os.environ['TA_LIBRARY_PATH'].split(os.pathsep)
5957

6058
if not platform_supported:
6159
raise NotImplementedError(sys.platform)

0 commit comments

Comments
 (0)