lbry-android-sdk/recipes/zope_interface/__init__.py

22 lines
713 B
Python
Raw Normal View History

from pythonforandroid.recipe import PythonRecipe
from pythonforandroid.toolchain import current_directory
import sh
class ZopeInterfaceRecipe(PythonRecipe):
name = 'zope_interface'
version = '4.2.0'
url = 'https://pypi.python.org/packages/source/z/zope.interface/zope.interface-{version}.tar.gz'
site_packages_name = 'zope.interface'
depends = [('python2', 'python3crystax')]
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()