From 65b277fc7292e7b38a98f5dd1f39e3d838b788e1 Mon Sep 17 00:00:00 2001 From: antior Date: Fri, 31 Jul 2026 17:29:40 +0800 Subject: [PATCH] Add PyPI registry install instructions to README --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index c4e6801..a589f07 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,22 @@ io-compatible file reads through an approved Python helper on Windows DLP hosts. 完整文档见 [docs/DLP_IO_LIBRARY.md](docs/DLP_IO_LIBRARY.md)。 +## 安装 + +从 Gitea PyPI registry 安装(匿名可下载,无需 token): + +```powershell +py -m pip install --index-url https://gitea.docker.antior.cn/api/packages/antior/pypi/simple dlp-io +``` + +pip 会自动选择最匹配的 wheel:Windows 上 CPython 3.10–3.14 安装对应的 pyd wheel(整个库由 Cython 编译为单个 `.pyd`),其余环境安装纯 Python wheel。如需固定版本: + +```powershell +py -m pip install --index-url https://gitea.docker.antior.cn/api/packages/antior/pypi/simple dlp-io==0.1.1 +``` + +也可以从 [Releases](https://gitea.docker.antior.cn/antior/dlp-io/releases) 页面下载产物:wheel 用 `py -m pip install <文件>` 安装;`dlp_io.py` 或对应版本的裸 `.pyd` 为免安装单文件,直接放进项目目录(或加入 `PYTHONPATH`)即可 `import dlp_io`。 + ## 开发 ```bash