11from pythonforandroid .recipe import PythonRecipe
22from pythonforandroid .toolchain import current_directory
3+ from os .path import join
34import sh
45
56
@@ -9,10 +10,18 @@ class ZopeInterfaceRecipe(PythonRecipe):
910 version = '4.1.3'
1011 url = 'https://pypi.python.org/packages/source/z/zope.interface/zope.interface-{version}.tar.gz'
1112 site_packages_name = 'zope.interface'
12-
13- depends = [('python2' , 'python3crystax' )]
13+ depends = ['setuptools' ]
1414 patches = ['no_tests.patch' ]
1515
16+ def build_arch (self , arch ):
17+ super (ZopeInterfaceRecipe , self ).build_arch (arch )
18+ # The zope.interface module lacks of the __init__.py file in one of his
19+ # folders (once is installed), that leads into an ImportError.
20+ # Here we intentionally apply a patch to solve that, so, in case that
21+ # this is solved in the future an error will be triggered
22+ zope_install = join (self .ctx .get_site_packages_dir (arch .arch ), 'zope' )
23+ self .apply_patch ('fix-init.patch' , arch .arch , build_dir = zope_install )
24+
1625 def prebuild_arch (self , arch ):
1726 super (ZopeInterfaceRecipe , self ).prebuild_arch (arch )
1827 with current_directory (self .get_build_dir (arch .arch )):
0 commit comments