lbry-android/p4a/pythonforandroid/recipes/numpy/__init__.py
Akinwale Ariwodola 744cfaebc2 Initial commit
2017-08-13 02:24:00 +01:00

26 lines
753 B
Python

from pythonforandroid.toolchain import CompiledComponentsPythonRecipe, warning
class NumpyRecipe(CompiledComponentsPythonRecipe):
version = '1.9.2'
url = 'http://pypi.python.org/packages/source/n/numpy/numpy-{version}.tar.gz'
site_packages_name= 'numpy'
depends = ['python2']
patches = ['patches/fix-numpy.patch',
'patches/prevent_libs_check.patch',
'patches/ar.patch',
'patches/lib.patch']
def prebuild_arch(self, arch):
super(NumpyRecipe, self).prebuild_arch(arch)
# AND: Fix this warning!
warning('Numpy is built assuming the archiver name is '
'arm-linux-androideabi-ar, which may not always be true!')
recipe = NumpyRecipe()