Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
info('Extracting CrystaX python{} from NDK package'.format(self.version))
dirn = self.ctx.get_python_install_dir()
ensure_dir(dirn)
self.ctx.hostpython = 'python{}'.format(self.version)
# ensure_dir(join(dirn, 'lib'))
# ensure_dir(join(dirn, 'lib', 'python{}'.format(self.version),
# 'site-packages'))
# ndk_dir = self.ctx.ndk_dir
# sh.cp('-r', '/home/asandy/kivytest/crystax_stdlib', join(dirn, 'lib', 'python3.5'))
# sh.cp('-r', '/home/asandy/android/crystax-ndk-10.3.0/sources/python/3.5/libs/armeabi/modules', join(dirn, 'lib', 'python3.5', 'lib-dynload'))
# ensure_dir(join(dirn, 'lib', 'site-packages'))
recipe = Python2Recipe()
def get_dir_name(self):
name = super(Python2Recipe, self).get_dir_name()
name += '-version{}'.format(self.version)
return name