File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ def get_site_packages_dir(self, arch=None):
480480 # AND: This *must* be replaced with something more general in
481481 # order to support multiple python versions and/or multiple
482482 # archs.
483- if self .ndk_is_crystax :
483+ if self .python_recipe . from_crystax :
484484 return self .get_python_install_dir ()
485485 return join (self .get_python_install_dir (),
486486 'lib' , 'python2.7' , 'site-packages' )
Original file line number Diff line number Diff line change @@ -829,8 +829,8 @@ def build_cython_components(self, arch):
829829
830830 env = self .get_recipe_env (arch )
831831
832- if self .ctx .ndk_is_crystax :
833- site_packages_dirs = sh .Command ('python3.5' )('-c' , 'import site; print("\\ n".join(site.getsitepackages()))' ).stdout .split ('\n ' )
832+ if self .ctx .python_recipe . from_crystax :
833+ site_packages_dirs = sh .Command ('python{}' . format ( self . ctx . python_recipe . version )('-c' , 'import site; print("\\ n".join(site.getsitepackages()))' ).stdout .split ('\n ' )
834834 # env['PYTHONPATH'] = '/usr/lib/python3.5/site-packages/:/usr/lib/python3.5'
835835 if 'PYTHONPATH' in env :
836836 env ['PYTHONPATH' ] = env + ':{}' .format (':' .join (site_packages_dirs ))
You can’t perform that action at this time.
0 commit comments