From 346de7307f2d2e4780ea3e04b63fd9729bba06b6 Mon Sep 17 00:00:00 2001 From: Jake Bolewski Date: Fri, 26 Oct 2018 12:06:18 -0600 Subject: [PATCH] don't build HDFS by default on Windows --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b38e49c162..65f43ad00c 100644 --- a/setup.py +++ b/setup.py @@ -64,6 +64,8 @@ def libtiledb_exists(library_dirs): lib_name = "libtiledb.dylib" else: lib_name = "libtiledb.so" + elif os.name == "nt": + lib_name = "tiledb.lib" try: ctypes.CDLL(lib_name) return lib_name @@ -117,8 +119,8 @@ def build_libtiledb(src_dir): cmake_cmd = ["cmake", "-DCMAKE_INSTALL_PREFIX={}".format(libtiledb_install_dir), "-DCMAKE_BUILD_TYPE=Release", "-DTILEDB_TESTS=OFF", - "-DTILEDB_HDFS=ON", "-DTILEDB_S3=ON", + "-DTILEDB_HDFS={}".format("ON" if os.name == "posix" else "OFF"), ".."] have_make = True