Add PyPI registry install instructions to README
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user