Skip to content

Commit 97e9706

Browse files
committed
Added numpy recipe explicit failure under x86
1 parent eba92ab commit 97e9706

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pythonforandroid/recipes/numpy/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
from pythonforandroid.toolchain import CompiledComponentsPythonRecipe, warning
3+
from pythonforandroid.patching import is_arch
34

45

56
class NumpyRecipe(CompiledComponentsPythonRecipe):
@@ -21,6 +22,11 @@ def prebuild_arch(self, arch):
2122
# AND: Fix this warning!
2223
warning('Numpy is built assuming the archiver name is '
2324
'arm-linux-androideabi-ar, which may not always be true!')
25+
if arch.arch[:3] != 'arm':
26+
error('Trying to build with unsupported arch - the numpy patches need '
27+
'to be fixed to use the right archiver.')
28+
exit(1)
29+
2430

2531

2632
recipe = NumpyRecipe()

0 commit comments

Comments
 (0)