python313Packages.polars: fix build with Rust 1.88.0
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
diff --git a/crates/polars-compute/src/lib.rs b/crates/polars-compute/src/lib.rs
|
||||
index ebe1ef753..6e1eee897 100644
|
||||
--- a/crates/polars-compute/src/lib.rs
|
||||
+++ b/crates/polars-compute/src/lib.rs
|
||||
@@ -5,6 +5,10 @@
|
||||
all(feature = "simd", target_arch = "x86_64"),
|
||||
feature(stdarch_x86_avx512)
|
||||
)]
|
||||
+#![cfg_attr(
|
||||
+ all(feature = "simd", target_arch = "x86_64"),
|
||||
+ feature(avx512_target_feature)
|
||||
+)]
|
||||
|
||||
use arrow::types::NativeType;
|
||||
|
||||
@@ -59,6 +59,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-OZ7guV/uxa3jGesAh+ubrFjQSNVp5ImfXfPAQxagTj0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./avx512.patch
|
||||
];
|
||||
|
||||
# Do not type-check assertions because some of them use unstable features (`is_none_or`)
|
||||
postPatch = ''
|
||||
while IFS= read -r -d "" path ; do
|
||||
|
||||
Reference in New Issue
Block a user