You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two make commands available, one of them builds a wheel but it ignores the dependencies in the pyproject. The other fails to build because maturin can't find the pyproject.toml. I suspect they both have the same root cause.
Your maturin version (maturin --version)
1.4.0
Your Python version (python -V)
3.11.7
Your pip version (pip -V)
23.3.1
What bindings you're using
uniffi
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
Check out the included repo
(optional) use nix-shell to pull all tools down
type make build to see it build the wheel. Look a the contents of the wheel to see there is nothing referencing the needed dependencies
type build-with-sdist to see the build fail
The text was updated successfully, but these errors were encountered:
This appears to be because it assumes the pyproject.toml to be in the same directory as Cargo.toml.
Actually it assumes Cargo.toml to be located in the same directory or subdirectory as pyproject.toml, but you can specify manifest-path in [tool.maturin] section of pyproject.toml, but now you have to run maturin in the pyproject.toml directory instead of passing --manifest-path in CLI.
Bug Description
When trying to build a uniffi project with maturin it doesn't seem to be using the pyproject.toml. I have a minimal project here to show this: https://github.com/stusmall/maturin-uniffi-errors
There are two make commands available, one of them builds a wheel but it ignores the dependencies in the pyproject. The other fails to build because maturin can't find the pyproject.toml. I suspect they both have the same root cause.
Your maturin version (
maturin --version
)1.4.0
Your Python version (
python -V
)3.11.7
Your pip version (
pip -V
)23.3.1
What bindings you're using
uniffi
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
nix-shell
to pull all tools downmake build
to see it build the wheel. Look a the contents of the wheel to see there is nothing referencing the needed dependenciesbuild-with-sdist
to see the build failThe text was updated successfully, but these errors were encountered: