@@ -8,14 +8,12 @@ class NumpyRecipe(CompiledComponentsPythonRecipe):
8
8
version = '1.15.1'
9
9
url = 'https://pypi.python.org/packages/source/n/numpy/numpy-{version}.zip'
10
10
site_packages_name = 'numpy'
11
- depends = [('python2' , 'python3' , 'python3crystax' )]
11
+ depends = [('python2' , 'python3' , 'python3crystax' ), 'setuptools' ]
12
+ call_hostpython_via_targetpython = False
12
13
13
14
patches = [
14
15
join ('patches' , 'fix-numpy.patch' ),
15
- join ('patches' , 'prevent_libs_check.patch' ),
16
- join ('patches' , 'ar.patch' ),
17
16
join ('patches' , 'lib.patch' ),
18
- join ('patches' , 'python-fixes.patch' )
19
17
]
20
18
21
19
def build_compiled_components (self , arch ):
@@ -28,31 +26,5 @@ def rebuild_compiled_components(self, arch, env):
28
26
super (NumpyRecipe , self ).rebuild_compiled_components (arch , env )
29
27
self .setup_extra_args = []
30
28
31
- def get_recipe_env (self , arch ):
32
- env = super (NumpyRecipe , self ).get_recipe_env (arch )
33
-
34
- flags = " -L{} --sysroot={}" .format (
35
- join (self .ctx .ndk_platform , 'usr' , 'lib' ),
36
- self .ctx .ndk_platform
37
- )
38
-
39
- py_ver = self .ctx .python_recipe .major_minor_version_string
40
- py_inc_dir = self .ctx .python_recipe .include_root (arch .arch )
41
- py_lib_dir = self .ctx .python_recipe .link_root (arch .arch )
42
- if self .ctx .ndk == 'crystax' :
43
- src_dir = join (self .ctx .ndk_dir , 'sources' )
44
- flags += " -I{}" .format (join (src_dir , 'crystax' , 'include' ))
45
- flags += " -L{}" .format (join (src_dir , 'crystax' , 'libs' , arch .arch ))
46
- flags += ' -I{}' .format (py_inc_dir )
47
- flags += ' -L{} -lpython{}' .format (py_lib_dir , py_ver )
48
- if 'python3' in self .ctx .python_recipe .name :
49
- flags += 'm'
50
-
51
- if flags not in env ['CC' ]:
52
- env ['CC' ] += flags
53
- if flags not in env ['LD' ]:
54
- env ['LD' ] += flags + ' -shared'
55
- return env
56
-
57
29
58
30
recipe = NumpyRecipe ()
0 commit comments