@@ -13,7 +13,7 @@ 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 = False
16
+ install_in_hostpython = True
17
17
call_hostpython_via_targetpython = False
18
18
19
19
patches = [
@@ -40,9 +40,6 @@ def _build_compiled_components(self, arch):
40
40
41
41
env = self .get_recipe_env (arch )
42
42
with current_directory (self .get_build_dir (arch .arch )):
43
- hostpython = sh .Command (self .real_hostpython_location )
44
- if self .install_in_hostpython :
45
- shprint (hostpython , 'setup.py' , 'clean' , '--all' , '--force' , _env = env )
46
43
hostpython = sh .Command (self .hostpython_location )
47
44
shprint (hostpython , 'setup.py' , self .build_cmd , '-v' ,
48
45
_env = env , * self .setup_extra_args )
@@ -68,5 +65,10 @@ def rebuild_compiled_components(self, arch, env):
68
65
self ._rebuild_compiled_components (arch , env )
69
66
self .setup_extra_args = []
70
67
68
+ def get_hostrecipe_env (self , arch ):
69
+ env = super ().get_hostrecipe_env (arch )
70
+ env ['RANLIB' ] = sh .which ('ranlib' )
71
+ return env
72
+
71
73
72
74
recipe = NumpyRecipe ()
0 commit comments