diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 490c690..5c651de 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -8,6 +8,8 @@ package: source: url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz sha256: 562b2022faf0882586c915385620d1f11798fc1b32bac55353a530132369a6d0 + patches: + - patches/0001-Use-pyo3-0.15.0-to-fix-cross-compilation.patch # [build_platform != target_platform] build: number: 1 diff --git a/recipe/patches/0001-Use-pyo3-0.15.0-to-fix-cross-compilation.patch b/recipe/patches/0001-Use-pyo3-0.15.0-to-fix-cross-compilation.patch new file mode 100644 index 0000000..315c3d8 --- /dev/null +++ b/recipe/patches/0001-Use-pyo3-0.15.0-to-fix-cross-compilation.patch @@ -0,0 +1,24 @@ +From 150de46911e81a1d5bf69b3219967a8a3f0fcf7f Mon Sep 17 00:00:00 2001 +From: "H. Vetinari" +Date: Mon, 21 Mar 2022 16:51:09 +1100 +Subject: [PATCH] Use pyo3 0.15.0 to fix cross-compilation + +--- + tokenizers/Cargo.toml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tokenizers/Cargo.toml b/tokenizers/Cargo.toml +index 7953f36..581b729 100644 +--- a/tokenizers/Cargo.toml ++++ b/tokenizers/Cargo.toml +@@ -34,6 +34,7 @@ name = "bert_benchmark" + harness = false + + [dependencies] ++pyo3 = { version = "0.15.0" } + lazy_static = "1.4" + rand = "0.7" + onig = { version = "6.0", default-features = false } +-- +2.35.1.windows.2 +