Skip to content

Commit c037c78

Browse files
committed
Add document about python version
1 parent 776ea02 commit c037c78

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ https://github.com/PyO3/pyo3/blob/master/build.rs for minimum required version)
2626
Starting from 0.3, rust-numpy migrated from rust-cpython to pyo3.
2727
If you want to use rust-cpython, use version 0.2.1 from crates.io.
2828

29+
Supported python version
30+
-------------
31+
Currently 2.7, 3.5, 3.6, 3.7 are supported.
32+
33+
By default, python version is automatically by execute `python`.
34+
35+
If you need to use python version, please add a feature flag like
36+
37+
``` toml
38+
[dependencies.numpy]
39+
version = "0.4.0-alpha.1"
40+
features = ["python3"]
41+
```
42+
.
43+
44+
You can also specify version in [setup.py](examples/simple-extension/setup.py)
45+
2946

3047
Example
3148
---------

0 commit comments

Comments
 (0)