piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Missing package: maturin #254

Closed jotonedev closed 1 year ago

jotonedev commented 2 years ago

Package name

maturin

Package version

>=0.11.2

PyPI URL

https://pypi.org/project/maturin/

piwheels URL

https://www.piwheels.org/project/maturin/

Python version

I am the maintainer

More information

The builds appear to be failing because rust and cargo are not installed.

I successfully compiled maturin by installing rust using this commands and then running pip3 wheel maturin.

wget https://static.rust-lang.org/dist/rust-1.55.0-armv7-unknown-linux-gnueabihf.tar.gz
tar xvzf rust-1.55.0-armv7-unknown-linux-gnueabihf.tar.gz
cd rust-1.55.0-armv7-unknown-linux-gnueabihf
sudo ./install.sh
bennuttall commented 2 years ago

cargo is installed: https://github.com/piwheels/piwheels/blob/master/deploy_slave.sh#L67

Here's the build log for v0.11.5: https://dpaste.com//E8QBQV556

Do the cargo dependencies rely on downloading stuff from github by any chance? We disable git clones in piwheels builds, so it's possibly that.

samuelcolvin commented 2 years ago

Looks like this error probably is something to do with git, I know cargo metadata users libgit.

@messense might know more.

messense commented 2 years ago

Yes, cargo needs to clone the crates.io-index repository from GitHub.

davidhewitt commented 2 years ago

With nightly rust you could try CARGO_UNSTABLE_SPARSE_REGISTRY=true to avoid needing a git clone.

bennuttall commented 1 year ago

Built successfully