From 4d1e9a964454b2f7758a29fa651692c94cda7a11 Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Fri, 15 Nov 2024 23:30:03 -0500 Subject: [PATCH] fix pyodide compilation --- python/Cargo.lock | 1 + python/geoarrow-io/Cargo.toml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/python/Cargo.lock b/python/Cargo.lock index 8b761993f..857da1524 100644 --- a/python/Cargo.lock +++ b/python/Cargo.lock @@ -1167,6 +1167,7 @@ dependencies = [ "thiserror 1.0.69", "tokio", "url", + "zstd-sys", ] [[package]] diff --git a/python/geoarrow-io/Cargo.toml b/python/geoarrow-io/Cargo.toml index 687169ca6..c7770edf2 100644 --- a/python/geoarrow-io/Cargo.toml +++ b/python/geoarrow-io/Cargo.toml @@ -77,3 +77,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 +zstd-sys = "2.0.12+zstd.1.5.6"