Skip to content

Commit

Permalink
Patch in pyo3 req to deal with cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Mar 21, 2022
1 parent b551f5f commit 5edb060
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions recipe/patches/0001-Use-pyo3-0.15.0-to-fix-cross-compilation.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 150de46911e81a1d5bf69b3219967a8a3f0fcf7f Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
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

0 comments on commit 5edb060

Please sign in to comment.