Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@
```

* 通过uv安装(Linux/MacOS/Windows)
* 通过执行下述uv指令添加PyCGraph作为项目依赖
```shell
$ # 该指令会根据不同系统采取不同的策略拉取PyCGraph作为依赖,Linux系统则拉取git仓库main分支代码并从源码构建依赖,Windows/Mac系统则从pip仓库拉取依赖
$ uv add "pycgraph @ git+https://github.com/ChunelFeng/CGraph.git@main#subdirectory=python" --marker "sys_platform == 'linux'"
```
$ uv init cgraph_env # 通过uv 创建一个名为 cgraph_env 的环境
$ cd cgraph_env
$ uv add "pycgraph @ git+https://github.com/ChunelFeng/CGraph.git@main#subdirectory=python" --marker "sys_platform == 'linux'" # 添加PyCGraph依赖
$ python3 -c "import PyCGraph" # 验证 PyCGraph 成功安装
```
1 change: 0 additions & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[build-system]
# some dependency needed by PyCGraph
requires = ["setuptools", "wheel", "pybind11"]
build-backend = "setuptools.build_meta"

Expand Down
Loading