Skip to content

Commit 357721c

Browse files
committed
Update README and README.zh-CN to clarify wheel installation process and supported architectures; add wheel download details
1 parent 9ffc26b commit 357721c

3 files changed

Lines changed: 19 additions & 80 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ build/
1414
*.so
1515
*.pyd
1616
.maturin/
17+
test/

‎README.md‎

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,16 @@ or:
4141
uv pip install -r requirements.txt
4242
```
4343

44-
The installer picks the wheel for the local OS and CPU. One wheel covers Python 3.10, 3.11, 3.12, and later on that platform.
44+
The installer downloads the wheel for the local OS and CPU. One wheel covers Python 3.10, 3.11, 3.12, and later on that platform. You do not download a wheel yourself.
4545

46-
You can also download a wheel from the [GitHub Release](https://github.com/GreptimeTeam/greptimedb-python-sdk/releases).
46+
Supported architectures:
47+
48+
- Linux x86_64, glibc 2.28 or later
49+
- Linux aarch64, glibc 2.28 or later
50+
- Windows x64
51+
- macOS arm64 (Apple Silicon)
52+
53+
Published wheels:
4754

4855
| Platform | wheel |
4956
| --- | --- |
@@ -52,44 +59,6 @@ You can also download a wheel from the [GitHub Release](https://github.com/Grept
5259
| Windows x64 | `greptimedb_ingester-0.1.0-cp310-abi3-win_amd64.whl` |
5360
| macOS Apple Silicon | `greptimedb_ingester-0.1.0-cp310-abi3-macosx_11_0_arm64.whl` |
5461

55-
The examples below use the Linux x86_64 filename. Substitute the file that matches the local platform.
56-
57-
pip:
58-
59-
```bash
60-
pip install greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
61-
```
62-
63-
uv:
64-
65-
```bash
66-
uv add greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
67-
```
68-
69-
To install into an existing virtual environment:
70-
71-
```bash
72-
uv pip install greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
73-
```
74-
75-
Put the wheel path in `requirements.txt`:
76-
77-
```text
78-
./greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
79-
```
80-
81-
Then:
82-
83-
```bash
84-
pip install -r requirements.txt
85-
```
86-
87-
or:
88-
89-
```bash
90-
uv pip install -r requirements.txt
91-
```
92-
9362
Building from source requires Rust 1.85 or later:
9463

9564
```bash

‎README.zh-CN.md‎

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,16 @@ pip install -r requirements.txt
4141
uv pip install -r requirements.txt
4242
```
4343

44-
安装器会按本机系统和 CPU 选择 wheel。一个 wheel 可以给该系统上的 Python 3.10、3.11、3.12……使用。
44+
安装器会下载和本机系统、CPU 匹配的 wheel。一个 wheel 可以给该系统上的 Python 3.10、3.11、3.12……使用。不用自己下载 wheel。
4545

46-
也可以从 [GitHub Release](https://github.com/GreptimeTeam/greptimedb-python-sdk/releases) 下载 wheel 再安装。
46+
支持的架构:
47+
48+
- Linux x86_64,glibc 2.28 及以上
49+
- Linux aarch64,glibc 2.28 及以上
50+
- Windows x64
51+
- macOS arm64(Apple Silicon)
52+
53+
已发布的 wheel:
4754

4855
| 系统 | wheel |
4956
| --- | --- |
@@ -52,44 +59,6 @@ uv pip install -r requirements.txt
5259
| Windows x64 | `greptimedb_ingester-0.1.0-cp310-abi3-win_amd64.whl` |
5360
| macOS Apple Silicon | `greptimedb_ingester-0.1.0-cp310-abi3-macosx_11_0_arm64.whl` |
5461

55-
下面用 Linux x86_64 的文件名作例子。换成上表里和本机系统匹配的那个文件即可。
56-
57-
pip:
58-
59-
```bash
60-
pip install greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
61-
```
62-
63-
uv:
64-
65-
```bash
66-
uv add greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
67-
```
68-
69-
已经有虚拟环境、只想装进当前环境时:
70-
71-
```bash
72-
uv pip install greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
73-
```
74-
75-
`requirements.txt` 里写 wheel 的路径:
76-
77-
```text
78-
./greptimedb_ingester-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
79-
```
80-
81-
然后:
82-
83-
```bash
84-
pip install -r requirements.txt
85-
```
86-
87-
或:
88-
89-
```bash
90-
uv pip install -r requirements.txt
91-
```
92-
9362
从源码安装需要 Rust 1.85 及以上:
9463

9564
```bash

0 commit comments

Comments
 (0)