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 @@ -470,7 +470,7 @@ def get_site_packages_dir(self, arch=None):
470
470
# AND: This *must* be replaced with something more general in
471
471
# order to support multiple python versions and/or multiple
472
472
# archs.
473
- if self .ndk_is_crystax :
473
+ if self .python_recipe . from_crystax :
474
474
return self .get_python_install_dir ()
475
475
return join (self .get_python_install_dir (),
476
476
'lib' , 'python2.7' , 'site-packages' )
Original file line number Diff line number Diff line change @@ -785,8 +785,8 @@ def build_cython_components(self, arch):
785
785
786
786
env = self .get_recipe_env (arch )
787
787
788
- if self .ctx .ndk_is_crystax :
789
- site_packages_dirs = sh .Command ('python3.5' )('-c' , 'import site; print("\\ n".join(site.getsitepackages()))' ).stdout .split ('\n ' )
788
+ if self .ctx .python_recipe . from_crystax :
789
+ site_packages_dirs = sh .Command ('python{}' . format ( self . ctx . python_recipe . version )('-c' , 'import site; print("\\ n".join(site.getsitepackages()))' ).stdout .split ('\n ' )
790
790
# env['PYTHONPATH'] = '/usr/lib/python3.5/site-packages/:/usr/lib/python3.5'
791
791
if 'PYTHONPATH' in env :
792
792
env ['PYTHONPATH' ] = env + ':{}' .format (':' .join (site_packages_dirs ))
You can’t perform that action at this time.
0 commit comments