Skip to content

Commit

Permalink
Fix scikit-learn build on armeabi-v7a (closes #878)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Dec 7, 2023
1 parent 99a1dab commit 9ac93b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/pypi/packages/scikit-learn/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ package:
name: scikit-learn
version: "1.3.2"

build:
number: 1

requirements:
host:
- chaquopy-openblas 0.2.20
Expand Down
13 changes: 13 additions & 0 deletions server/pypi/packages/scikit-learn/patches/chaquopy.patch
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,16 @@
build_ext.build_extensions(self)

def run(self):
--- src-original/sklearn/preprocessing/_csr_polynomial_expansion.pyx 2023-10-23 10:11:35.000000000 +0000
+++ src/sklearn/preprocessing/_csr_polynomial_expansion.pyx 2023-12-07 13:27:03.843087470 +0000
@@ -20,7 +20,9 @@
"""
#ifdef __SIZEOF_INT128__
typedef __int128 LARGEST_INT_t;
- #elif (__clang__ || __EMSCRIPTEN__) && !__i386__
+
+ // Chaquopy: added __arm__
+ #elif (__clang__ || __EMSCRIPTEN__) && !(__i386__ || __arm__)
typedef _BitInt(128) LARGEST_INT_t;
#else
typedef long long LARGEST_INT_t;

0 comments on commit 9ac93b2

Please sign in to comment.