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
7 changes: 7 additions & 0 deletions COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,10 @@
$ python3 setup.py install # 安装 PyCGraph
$ python3 tutorial/T00-HelloCGraph.py # 运行T00-HelloCGraph.py,并且在终端输出 Hello, PyCGraph.
```

* 通过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'"
```
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ Contributors:
- [AsunaU2](https://github.com/AsunaU2)
- [SolerHo](https://github.com/SolerHo)
- [guanquanchen](https://github.com/guanquanchen)
- [Linyu](https://github.com/weijinglin)

感谢以上朋友,为CGraph项目做出的贡献,排名以贡献时间前后为顺序。
15 changes: 15 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[build-system]
# some dependency needed by PyCGraph
requires = ["setuptools", "wheel", "pybind11"]
build-backend = "setuptools.build_meta"

[project]
name = "PyCGraph"
dynamic = ["version", "description", "authors", "license", "readme", "requires-python", "keywords", "classifiers"]

dependencies = [
"pybind11",
]

[tool.setuptools]
package-dir = {"" = "."}