-
-
Notifications
You must be signed in to change notification settings - Fork 275
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 fails if a local dependency is not released on crates.io
#1083
Comments
What's the output of maturin relies on |
This is the failing one: This is the successful one: I did find indeed less matches to the Edit: Ah, I see you are already further than I am. :) #1084 |
That does not work: #1084 (comment) , cargo requires all of its path dependencies to exist I think. |
Please try v0.13.3-beta.2 when it's out. |
Hey, I observed the same issue in jsonschema with the newest
It seems like the same problem, but if it is not, let me know if I need to create a new issue. |
@Stranger6667 I’ll take a look tomorrow. |
The problem is that maturin/src/source_distribution.rs Lines 470 to 499 in d7e8ba5
|
@Stranger6667 IMO the easiest way to fix it is to only depends on |
That said I wonder if it's possible to skip Local test shows that it works for |
1435: Don't package dev-only path dependencies in sdist r=konstin a=messense When building from sdist, `cargo` only needs `dependencies` and `build-dependencies`, removing `dev-dependencies` entirely from `Cargo.toml` makes sdist size smaller and avoid some problems with dev-only path deps like #1083 (comment). Co-authored-by: messense <messense@icloud.com>
Thank you for the detailed explanation! Newer |
I hit this same bug using maturin 1.2.0. Repro:
gives
Should I create a new issue for this? In this case the issue is I suppose slightly different, as |
@kylebarron Feel free to create a new issue, just remember to include the |
Bug Description
I am not entirely certain, but I believe it is related to a subdependency not being published to crates.io.
If I comment out this line and try to build a source distribution with maturin it fails.
The dependency is not required for the python bindings and is not yet released on crates.io.
This only happens if we try to build a source distro.
Your Python version (
python -V
)Python 3.9.12
Your pip version (
pip -V
)pip 21.2.4
What bindings you're using
pyo3
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
Comment out this this line on: pola-rs/polars@c8cfc99
and then run:
$ maturin build --sdist
.My maturin version is
0.13.2
. Sorry that I don't have an MWE other than an existing project. A bit hard to publish crates for this.The text was updated successfully, but these errors were encountered: