Remove hard-coded TBB package setup for windows
TBB is now optional and disabled by default in TileDB Embedded.
@@ -302,6 +302,9 @@ def find_or_install_libtiledb(setuptools_cmd):
do_copy(src, dest)
# tbb
+ has_tbb = False
+ if os.path.isdir(os.path.join(prefix_dir, "bin", "tbb.dll")):
+ has_tbb = True
src = os.path.join(prefix_dir, "bin", "tbb.dll")
dest = os.path.join(dest_dir, "tbb.dll")
do_copy(src, dest)
@@ -342,7 +345,12 @@ def find_or_install_libtiledb(setuptools_cmd):
if is_windows():
libtiledb_objects.extend(
[os.path.join(native_subdir, libname) for libname in
- ["tiledb.lib", "tbb.dll", "tbb.lib"]])
+ ["tiledb.lib"]])
+ if has_tbb:
+ libtiledb_objects.extend(
+ [os.path.join(native_subdir, libname) for libname in
+ ["tbb.lib", "tbb.dll"]])
+
print("\n-------------------")
print("libtiledb_objects: ", libtiledb_objects)
print("-------------------\n")
