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 91273f0b mingw
91273f0b is described below
commit 91273f0b4d15e37f2a6d85f39999b7731d783395
Author: HTHou <[email protected]>
AuthorDate: Fri Jun 21 23:30:45 2024 +0800
mingw
---
python/setup.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/python/setup.py b/python/setup.py
index 0890b6c6..3313e21f 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -67,7 +67,6 @@ elif platform.system() == "Linux":
copy_lib_files("Linux", libtsfile_shard_dir, libtsfile_dir, "so", "1.0")
else:
copy_lib_files("Windows", libtsfile_shard_dir, libtsfile_dir, "dll")
- copy_lib_files("Windows", libtsfile_shard_dir, libtsfile_dir, "dll", "a")
source_include_dir = os.path.join(project_dir, "..", "cpp", "src", "cwrapper",
"TsFile-cwrapper.h")
@@ -79,7 +78,7 @@ copy_header(source_include_dir, target_include_dir)
if platform.system() == "Windows":
ext_modules_tsfile = [
Extension(
- "tsfile_pywrapper",
+ "tsfile.tsfile_pywrapper",
sources=[source_file],
libraries=["tsfile"],
library_dirs=[libtsfile_dir],
@@ -88,6 +87,7 @@ if platform.system() == "Windows":
language="c++"
)
]
+ os.add_dll_directory(libtsfile_dir)
else:
ext_modules_tsfile = [
Extension(
@@ -119,7 +119,6 @@ setup(
os.path.join("*tsfile", "*.dylib"),
os.path.join("*tsfile", "*.pyd"),
os.path.join("*tsfile", "*.dll"),
- os.path.join("*tsfile", "*.dll.a"),
os.path.join("tsfile", "tsfile.py"),
]
},