This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch python-wper
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/python-wper by this push:
new 3dfeea87 mingw
3dfeea87 is described below
commit 3dfeea878ae5aa5d44140f52905a6a3b450affd2
Author: HTHou <[email protected]>
AuthorDate: Fri Jun 21 22:41:29 2024 +0800
mingw
---
python/setup.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/python/setup.py b/python/setup.py
index 2ffc6a5a..816bddbd 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -46,6 +46,8 @@ def copy_header(source, target):
class BuildExt(build_ext):
def build_extensions(self):
+ if platform.system() == "Windows":
+ os.add_dll_directory(libtsfile_dir)
numpy_include = np.get_include()
for ext in self.extensions:
ext.include_dirs.append(numpy_include)
@@ -82,6 +84,7 @@ if platform.system() == "Windows":
libraries=["tsfile"],
library_dirs=[libtsfile_dir],
include_dirs=[include_dir, np.get_include()],
+ extra_compile_args=["-std=c++11"],
language="c++"
)
]