If a custom header file is used it isn't included in the source distribution #831
Closed
2 tasks done
Labels
bug
Something isn't working
Bug Description
I'm building a crate following the example in the cffi-mixed test crate. One of the unique things about this crate is that python is only one of several different languages I'm creating bindings for. Because I've this I am using safer_ffi to define the FFI layer. cbindgen isn't able to produce headers using safer-ffi so I'm using the safer-ffi produced header and dropping it in target/header.h. This works great for the produced wheel but the header is left out of the source distro and thus fails to work.
Your Python version (
python -V
)3.8.12
Your pip version (
pip -V
)22.0.3
What bindings you're using
cffi
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
I wrote a minimal reproduction case for this here: https://github.com/stusmall/maturin-safer-ffi
Just pull it and follow the instructions in the readme. Some of the things the crate does might seem strange, but it is there to support many different language bindings to one rust crate.
The text was updated successfully, but these errors were encountered: