lbry-android-sdk/p4a/pythonforandroid/recipes/zope_interface/__init__.py
Akinwale Ariwodola 744cfaebc2 Initial commit
2017-08-13 02:24:00 +01:00

21 lines
703 B
Python

from pythonforandroid.toolchain import PythonRecipe, current_directory
import sh
class ZopeInterfaceRecipe(PythonRecipe):
call_hostpython_via_targetpython = False
name = 'zope_interface'
version = '4.1.3'
url = 'https://pypi.python.org/packages/source/z/zope.interface/zope.interface-{version}.tar.gz'
site_packages_name = 'zope.interface'
depends = ['python2']
patches = ['no_tests.patch']
def prebuild_arch(self, arch):
super(ZopeInterfaceRecipe, self).prebuild_arch(arch)
with current_directory(self.get_build_dir(arch.arch)):
sh.rm('-rf', 'src/zope/interface/tests', 'src/zope/interface/common/tests')
recipe = ZopeInterfaceRecipe()