Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(packaging): sdist 排除运行时二进制 (#447)

zhoujiahui1f1df6ea7ec2
diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml
index 7ed6f9cbf..a5e4f6f01 100644
--- a/.github/workflows/_build.yml
+++ b/.github/workflows/_build.yml
@@ -79,6 +79,9 @@ jobs:
run: |
git reset --hard HEAD
git clean -fd
+ # For sdist, ensure local runtime binaries are not packaged even if present
+ rm -rf openviking/bin openviking/lib third_party/agfs/bin || true
+ rm -f openviking/storage/vectordb/*.so openviking/storage/vectordb/*.dylib openviking/storage/vectordb/*.dll openviking/storage/vectordb/*.exe || true
rm -rf openviking/_version.py openviking.egg-info
# Ignore uv.lock changes to avoid dirty state in setuptools_scm
git update-index --assume-unchanged uv.lock || true
diff --git a/MANIFEST.in b/MANIFEST.in
index deea70263..800d1691d 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -11,6 +11,11 @@ include README.md
include pyproject.toml
include setup.py
recursive-include openviking *.yaml
+
+# sdist should be source-only: never ship runtime binaries from working tree
+prune openviking/bin
+prune openviking/lib
+recursive-exclude openviking *.so *.dylib *.dll *.exe
global-exclude *.py[cod]
global-exclude __pycache__
global-exclude .git*