@@ -719,25 +719,26 @@ def install_python_package(self, arch, name=None, env=None, is_dir=True):
719719
720720
721721 if self .ctx .ndk_is_crystax :
722- hppath = join (dirname (self .hostpython_location ), 'Lib' ,
723- 'site-packages' )
722+ # hppath = join(dirname(self.hostpython_location), 'Lib',
723+ # 'site-packages')
724724 hpenv = env .copy ()
725- if 'PYTHONPATH' in hpenv :
726- hpenv ['PYTHONPATH' ] = ':' .join ([hppath ] +
727- hpenv ['PYTHONPATH' ].split (':' ))
728- else :
729- hpenv ['PYTHONPATH' ] = hppath
725+ # if 'PYTHONPATH' in hpenv:
726+ # hpenv['PYTHONPATH'] = ':'.join([hppath] +
727+ # hpenv['PYTHONPATH'].split(':'))
728+ # else:
729+ # hpenv['PYTHONPATH'] = hppath
730730 # hpenv['PYTHONHOME'] = self.ctx.get_python_install_dir()
731731 # shprint(hostpython, 'setup.py', 'build',
732732 # _env=hpenv, *self.setup_extra_args)
733733 shprint (hostpython , 'setup.py' , 'install' , '-O2' ,
734734 '--root={}' .format (self .ctx .get_python_install_dir ()),
735- '--install-lib=lib/python3.5/site-packages' ,
735+ '--install-lib=.' ,
736+ # AND: will need to unhardcode the 3.5 when adding 2.7 (and other crystax supported versions)
736737 _env = hpenv , * self .setup_extra_args )
737- site_packages_dir = self .ctx .get_site_packages_dir ()
738- built_files = glob .glob (join ('build' , 'lib*' , '*' ))
739- for filen in built_files :
740- shprint (sh .cp , '-r' , filen , join (site_packages_dir , split (filen )[- 1 ]))
738+ # site_packages_dir = self.ctx.get_site_packages_dir()
739+ # built_files = glob.glob(join('build', 'lib*', '*'))
740+ # for filen in built_files:
741+ # shprint(sh.cp, '-r', filen, join(site_packages_dir, split(filen)[-1]))
741742 elif self .call_hostpython_via_targetpython :
742743 shprint (hostpython , 'setup.py' , 'install' , '-O2' , _env = env ,
743744 * self .setup_extra_args )
0 commit comments