This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch build_whl_package
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/build_whl_package by this push:
     new 5f11d63c finish build
5f11d63c is described below

commit 5f11d63ce0aacad549e74588bc92db18bb4d9e4c
Author: HTHou <[email protected]>
AuthorDate: Thu Oct 17 11:36:35 2024 +0800

    finish build
---
 .gitignore              | 5 ++++-
 python/pom.xml          | 2 +-
 python/requirements.txt | 1 +
 python/setup.py         | 5 +++++
 4 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 430fe0ac..e470fbdc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,6 +21,9 @@ docs/pnpm-lock.yaml
 
 # python files
 python/build
+python/dist
+python/__pycache__
+python/tsfile.egg-info
 python/tsfile/__pycache__
 python/tsfile/*so*
 python/tsfile/*dll*
@@ -33,4 +36,4 @@ cpp/cmake-build-debug-mingw/
 
 .vscode/
 
-build/*
\ No newline at end of file
+build/*
diff --git a/python/pom.xml b/python/pom.xml
index 0fcd644e..310ec7c0 100644
--- a/python/pom.xml
+++ b/python/pom.xml
@@ -137,7 +137,7 @@
                         </configuration>
                     </execution>
                     <execution>
-                        <id>package-whl</id>
+                        <id>create-whl-package</id>
                         <phase>package</phase>
                         <goals>
                             <goal>exec</goal>
diff --git a/python/requirements.txt b/python/requirements.txt
index 0c82a92b..1f579636 100644
--- a/python/requirements.txt
+++ b/python/requirements.txt
@@ -21,4 +21,5 @@ cython==3.0.10
 numpy==1.26.4
 pandas==2.2.2
 setuptools==70.0.0
+wheel
 
diff --git a/python/setup.py b/python/setup.py
index 27a7a218..8c4067e2 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -67,6 +67,11 @@ libtsfile_dir = os.path.join(project_dir, "tsfile")
 include_dir = os.path.join(project_dir, "tsfile")
 source_file = os.path.join("tsfile", "tsfile_pywrapper.pyx")
 
+source_include_dir = os.path.join(
+    project_dir, "..", "cpp", "src", "cwrapper", "TsFile-cwrapper.h"
+)
+target_include_dir = os.path.join(project_dir, "tsfile", "TsFile-cwrapper.h")
+copy_header(source_include_dir, target_include_dir)
 
 ext_modules_tsfile = [
     Extension(

Reply via email to