File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
pythonforandroid/recipes/numpy Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ class NumpyRecipe(CompiledComponentsPythonRecipe):
13
13
url = 'https://pypi.python.org/packages/source/n/numpy/numpy-{version}.zip'
14
14
site_packages_name = 'numpy'
15
15
depends = ['setuptools' , 'cython' ]
16
- install_in_hostpython = True
16
+ install_in_hostpython = False
17
17
call_hostpython_via_targetpython = False
18
18
19
19
patches = [
20
20
join ("patches" , "remove-default-paths.patch" ),
21
21
join ("patches" , "add_libm_explicitly_to_build.patch" ),
22
+ join ("patches" , "ranlib.patch" ),
22
23
]
23
24
24
25
def get_recipe_env (self , arch = None , with_flags_in_cc = True ):
Original file line number Diff line number Diff line change
1
+ diff -Naur numpy.orig/numpy/distutils/unixccompiler.py numpy/numpy/distutils/unixccompiler.py
2
+ --- numpy.orig/numpy/distutils/unixccompiler.py 2022-05-28 10:22:10.000000000 +0200
3
+ +++ numpy/numpy/distutils/unixccompiler.py 2022-05-28 10:22:24.000000000 +0200
4
+ @@ -124,6 +124,7 @@
5
+ # platform intelligence here to skip ranlib if it's not
6
+ # needed -- or maybe Python's configure script took care of
7
+ # it for us, hence the check for leading colon.
8
+ + self.ranlib = [os.environ.get('RANLIB')]
9
+ if self.ranlib:
10
+ display = '%s:@ %s' % (os.path.basename(self.ranlib[0]),
11
+ output_filename)
You can’t perform that action at this time.
0 commit comments