lbry-android/p4a/pythonforandroid/recipes/zope_interface/__init__.py

22 lines
703 B
Python
Raw Normal View History

2017-08-13 03:24:00 +02:00
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()