File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,30 +64,31 @@ Pantograph 无法执行 Lean 本身约束的操作,包括:
6464
6565## 安装步骤
6666
67- 1 . 安装 ` poetry ` 。
67+ 1 . 安装 ` uv ` 。
6868
69- 2 . 执行命令构建 Pantograph 的 wheel 包:
69+ 2 . 安装elan:参考 [ Lean Manual ] ( https://lean-lang.org/install/ )
7070
71+ 3 . clone项目与子模块
7172 ``` sh
72- poetry build
73+ git clone --recurse-submodules https://github.com/stanford-centaur/PyPantograph.git
7374 ```
75+
76+ 4 . 执行命令构建 Pantograph 的 wheel 包:
7477
75- 构建完成后,会在 ` dist ` 目录生成 Pantograph 的 wheel 文件,可以用于安装。
76-
77- 3 . 在下游项目的 ` pyproject.toml ` 中添加依赖,例如:
78-
79- ``` toml
80- pantograph = { file = " path/to/wheel/dist/pantograph-0.3.0-cp312-cp312-manylinux_2_40_x86_64.whl" }
78+ ``` sh
79+ cd < repo-path>
80+ uv build
8181 ```
8282
83- 4 . 运行示例和实验,先进入 poetry shell 环境:
83+ 构建完成后,会在 ` dist ` 目录生成 Pantograph 的 wheel 文件,可以用于安装。
84+
85+ 5 . 在下游项目中添加依赖:
8486
8587 ``` sh
86- poetry install
87- poetry shell
88+ uv add < repo-path>
8889 ```
89-
90- 这会启动一个包含开发包的环境,方便进行交互操作。
90+ > 注意事项:
91+ > 1 . 在windows可能无法build,可以尝试wsl或Linux
9192
9293## 使用 Pantograph 服务器
9394
You can’t perform that action at this time.
0 commit comments