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 0f09c985 mingw
0f09c985 is described below

commit 0f09c98559127b997f18974ea80980eef68da31c
Author: HTHou <[email protected]>
AuthorDate: Sat Jun 22 00:04:23 2024 +0800

    mingw
---
 python/setup.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/setup.py b/python/setup.py
index 40914050..9c42c1c1 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -46,9 +46,10 @@ def copy_header(source, target):
 
 class BuildExt(build_ext):
     def build_extensions(self):
+        numpy_include = np.get_include()
         if platform.system() == "Windows":
             os.add_dll_directory(libtsfile_dir)
-        numpy_include = np.get_include()
+            os.add_dll_directory(numpy_include)
         for ext in self.extensions:
             ext.include_dirs.append(numpy_include)
         super().build_extensions()
@@ -80,7 +81,7 @@ if platform.system() == "Windows":
         Extension(
             "tsfile.tsfile_pywrapper",
             sources=[source_file],
-            libraries=["tsfile", "tsfile/tsfile_pywrapper"],
+            libraries=["tsfile"],
             library_dirs=[libtsfile_dir],
             include_dirs=[include_dir, np.get_include()],
             extra_compile_args=["-std=c++11"],

Reply via email to