From 8764fc35a528de07f1039d93232a3ab63c82f690 Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Thu, 5 Dec 2024 18:50:00 -0500 Subject: [PATCH] Fix pyodide compilation (#906) Closes #868 --- python/Cargo.lock | 5 +++-- python/geoarrow-io/Cargo.toml | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python/Cargo.lock b/python/Cargo.lock index 9680d738..c107c945 100644 --- a/python/Cargo.lock +++ b/python/Cargo.lock @@ -469,9 +469,9 @@ checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" [[package]] name = "cc" -version = "1.2.2" +version = "1.1.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f34d93e62b03caf570cccc334cbc6c2fceca82f39211051345108adcba3eebdc" +checksum = "40545c26d092346d8a8dab71ee48e7685a7a9cba76e634790c215b41a4a7b4cf" dependencies = [ "jobserver", "libc", @@ -1184,6 +1184,7 @@ version = "0.4.0-beta.2" dependencies = [ "arrow", "bytes", + "cc", "futures", "geo 0.29.3", "geo-traits", diff --git a/python/geoarrow-io/Cargo.toml b/python/geoarrow-io/Cargo.toml index e8b4d46b..650b16d8 100644 --- a/python/geoarrow-io/Cargo.toml +++ b/python/geoarrow-io/Cargo.toml @@ -76,3 +76,7 @@ url = "2.5" reqwest = { version = "*", features = ["rustls-tls-native-roots"] } # Compile openssl from source openssl = { version = "0.10", features = ["vendored"] } + +# Pin to fix strange pyodide compilation errors. +# See https://github.com/geoarrow/geoarrow-rs/issues/868 +cc = "1.1, <1.2"