Skip to content

Commit 393c788

Browse files
committed
Update python build for 20200912
1 parent 70d082c commit 393c788

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,11 @@ def build_extension(self, ext):
139139

140140
cmake_args = ['-DATCA_HAL_CUSTOM=ON', '-DATCA_TNGTLS_SUPPORT=ON',
141141
'-DATCA_TNGLORA_SUPPORT=ON', '-DATCA_TFLEX_SUPPORT=ON',
142-
'-DATCA_TNG_LEGACY_SUPPORT=ON', '-DATCA_TA100_SUPPORT=ON',
143-
'-DATCA_OPENSSL=ON', '-DATCA_USE_ATCAB_FUNCTIONS=ON']
142+
'-DATCA_TNG_LEGACY_SUPPORT=ON', '-DATCA_USE_ATCAB_FUNCTIONS=ON']
143+
144+
if os.path.exists('../lib/talib' if not sdist_build else 'lib/talib'):
145+
cmake_args += ['-DATCA_TA100_SUPPORT=ON', '-DATCA_OPENSSL=ON']
146+
144147
if not nousb:
145148
cmake_args += ['-DATCA_HAL_KIT_HID=ON']
146149

0 commit comments

Comments
 (0)