Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maturin looks in the wrong path if the crate is part of a workspace #832

Closed
2 tasks done
stusmall opened this issue Mar 5, 2022 · 0 comments · Fixed by #833
Closed
2 tasks done

maturin looks in the wrong path if the crate is part of a workspace #832

stusmall opened this issue Mar 5, 2022 · 0 comments · Fixed by #833
Labels
bug Something isn't working

Comments

@stusmall
Copy link

stusmall commented Mar 5, 2022

Bug Description

Maturin will look in the target directory of the crate for the header rather than the target directory of the workspace.

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?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

I wrote a minimal reproduction case for this here: https://github.com/stusmall/maturin-safer-ffi

This crate is mostly to cover the much larger issue #831 but also cover this. If you look at the xtask it creates an empty target directory and puts the processed header file there so maturin can find it. Nothing else is in that target directory, all other build artifacts are in the target directory at the base of the workspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant