-
I'm working on adding a rust extension to a python profiling tool to try and get a speed improvement. However, I'm relying on Is there a recommended way to build wheels for CPython that include my rust extension (and my pure python code) and build wheels for PyPy that only include my pure python code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No support for making Rust extension optional, see #1081. Sounds like you want https://docs.rs/pyo3-build-config/latest/pyo3_build_config/, for example
Then you can use |
Beta Was this translation helpful? Give feedback.
No support for making Rust extension optional, see #1081.
Sounds like you want https://docs.rs/pyo3-build-config/latest/pyo3_build_config/, for example
Then you can use
#[cfg(not(PyPy))]
in your code.