Skip to content

Commit 990c392

Browse files
committed
Drop the re-exports of PyMem_Raw* calls as those are not available using the limited API.
1 parent 126a9e7 commit 990c392

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

examples/simple/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ name = "rust_ext"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = { version = "0.16", features = ["extension-module"] }
12+
pyo3 = { version = "0.16", features = ["extension-module", "abi3-py37"] }
1313
numpy = { path = "../.." }

src/npyffi/array.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,6 @@ pub unsafe fn PyArray_CheckExact(py: Python, op: *mut PyObject) -> c_int {
394394
(ffi::Py_TYPE(op) == PY_ARRAY_API.get_type_object(py, NpyTypes::PyArray_Type)) as _
395395
}
396396

397-
// these are under `#if NPY_USE_PYMEM == 1` which seems to be always defined as 1
398-
pub use pyo3::ffi::{
399-
PyMem_RawFree as PyArray_free, PyMem_RawMalloc as PyArray_malloc,
400-
PyMem_RawRealloc as PyArray_realloc,
401-
};
402-
403397
#[cfg(test)]
404398
mod tests {
405399
use super::PY_ARRAY_API;

0 commit comments

Comments
 (0)