Skip to content

Commit

Permalink
fix build cfg: _PyInterpreterFrame is not available on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarrara committed Oct 9, 2023
1 parent 9e2255a commit 4931b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyo3-ffi/src/cpython/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub(crate) mod pystate;
pub(crate) mod pythonrun;
// skipped sysmodule.h
pub(crate) mod floatobject;
#[cfg(not(PyPy))]
pub(crate) mod pyframe;
pub(crate) mod tupleobject;
pub(crate) mod unicodeobject;
Expand Down
2 changes: 1 addition & 1 deletion pyo3-ffi/src/cpython/pyframe.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#[cfg(any(PyPy, Py_3_11))]
#[cfg(Py_3_11)]
opaque_struct!(_PyInterpreterFrame);

0 comments on commit 4931b00

Please # to comment.