Skip to content

Commit

Permalink
Make numpy-test example work out of the box and use shorter dependenc…
Browse files Browse the repository at this point in the history
…y format.
  • Loading branch information
adamreichold committed Jan 7, 2022
1 parent 7121433 commit d4fc487
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Rust bindings for the NumPy C-API.
name = "numpy-test"

[dependencies]
pyo3 = "0.15"
pyo3 = { version = "0.15", features = ["auto-initialize"] }
numpy = "0.15"
```

Expand Down Expand Up @@ -68,11 +68,8 @@ name = "rust_ext"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.15", features = ["extension-module"] }
numpy = "0.15"

[dependencies.pyo3]
version = "0.15"
features = ["extension-module"]
```

```rust
Expand Down
5 changes: 1 addition & 4 deletions examples/linalg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ name = "rust_linalg"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.15", features = ["extension-module"] }
numpy = { path = "../.." }
ndarray-linalg = { version = "0.14.1", features = ["openblas-static"] }

[dependencies.pyo3]
version = "0.15"
features = ["extension-module"]
5 changes: 1 addition & 4 deletions examples/simple-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ name = "rust_ext"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.15", features = ["extension-module"] }
numpy = { path = "../.." }
num-complex = "0.4.0"

[dependencies.pyo3]
version = "0.15"
features = ["extension-module"]

0 comments on commit d4fc487

Please sign in to comment.