-
Notifications
You must be signed in to change notification settings - Fork 102
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
build fails with "error: Rust build failed; unable to find any build artifacts" #286
Comments
Thanks for reporting. Can you share a minimal repro of your project configuration and your build process which shows the error? The cargo output has not changed and is handled correctly, so the cause is likely in your project configuration. |
Okay, I made this minimal example based on the actual project architecture and configuration: https://github.com/Krenodeno/python-rust-reprod I reproduce the error doing the following:
Still I don't understand because a month or two back, it worked fine. I forgot to mentions we use CPython bindings, maybe that's the cause ? |
Thanks, I will do my best to debug this in the next few days. |
+1, I'm experiencing what is likely the same underlying issue trying to build googleprojectzero/weggli. The rust code builds fine.
|
I was able to successfully build by changing The relevant artifact output from Cargo is:
|
#290 should fix this, I'll try to put out a release within a few days. |
Hi,
I get an error "error: Rust build failed; unable to find any build artifacts" which originated from setuptools-rust https://github.com/PyO3/setuptools-rust/blob/v1.5.1/setuptools_rust/build.py#L284 even if rustc/cargo show no error ("Finished release [optimized] target(s) in 38.90s").
The rust lib build fine, but for any reason, setuptools-rust seems to not find artifacts.
My rust project is a single lib.rs file, compiled with cargo 1.63, setuptools-rust is v1.5.1 and pip is v22.2.1.
I tried trying running the rustc line outputed while building with
cargo build -v
, which output is the following:Looking at https://github.com/PyO3/setuptools-rust/blob/v1.5.1/setuptools_rust/build.py#L691 could it be that the json output of rustc have changed, then the parsing doesn't work ?
The text was updated successfully, but these errors were encountered: