base_rag/scripts/build.sh

16 lines
235 B
Bash
Executable File

#!/bin/bash
# 构建脚本
set -e
echo "检查并安装构建依赖..."
pip install --upgrade pip build twine
echo "清理..."
rm -rf build/ dist/ *.egg-info/
echo "构建..."
python -m build
echo "完成! 输出在 dist/ 目录"