Skip to content

Commit 82d10aa

Browse files
committed
Merge branch 'pkg-ain-via-pyinstaller' of https://github.com/apache/iotdb into pkg-ain-via-pyinstaller
2 parents 33ba4ed + 729c7c1 commit 82d10aa

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

iotdb-core/ainode/ainode.spec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ block_cipher = None
3030
from PyInstaller.utils.hooks import collect_all, collect_submodules, collect_data_files
3131

3232
# Collect only essential data files and binaries for large libraries
33-
# Using collect_all for all submodules slows down startup significantly
34-
# Instead, we collect only what's needed and rely on PyInstaller's dependency analysis
33+
# Using collect_all for all submodules slows down startup significantly.
34+
# However, for certain libraries with many dynamic imports (e.g., torch, transformers, safetensors),
35+
# collect_all is necessary to ensure all required modules are included.
36+
# For other libraries, we use lighter-weight collection methods to improve startup time.
3537
all_datas = []
3638
all_binaries = []
3739
all_hiddenimports = []

iotdb-core/ainode/ainode.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<fileMode>0755</fileMode>
5757
</fileSet>
5858
<fileSet>
59-
<directory>dist</directory>
59+
<directory>dist/ainode</directory>
6060
<outputDirectory>lib</outputDirectory>
6161
<fileMode>0755</fileMode>
6262
</fileSet>

scripts/sbin/windows/start-ainode.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ echo Script got ainode executable: "$ain_ainode_executable"
3232

3333
echo Starting AINode...
3434

35-
%ain_ainode_dir% start
35+
%$ain_ainode_executable% start
3636

3737
pause

0 commit comments

Comments
 (0)