Skip to content

Commit e6fc4b6

Browse files
titoopacam
authored andcommitted
Fix zeroconf compilation and grants python3 compatibility
1 parent bf214b3 commit e6fc4b6

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
from pythonforandroid.recipe import PythonRecipe
2-
from os.path import join
32

43

54
class ZeroconfRecipe(PythonRecipe):
65
name = 'zeroconf'
76
version = '0.17.4'
87
url = 'https://pypi.python.org/packages/source/z/zeroconf/zeroconf-{version}.tar.gz'
9-
depends = ['python2', 'netifaces', 'enum34', 'six']
10-
11-
def get_recipe_env(self, arch=None):
12-
env = super(ZeroconfRecipe, self).get_recipe_env(arch)
13-
14-
# TODO: fix hardcoded path
15-
# This is required to prevent issue with _io.so import.
16-
hostpython = self.get_recipe('hostpython2', self.ctx)
17-
env['PYTHONPATH'] = (
18-
join(hostpython.get_build_dir(arch.arch), 'build',
19-
'lib.linux-x86_64-2.7') + ':' + env.get('PYTHONPATH', '')
20-
)
21-
return env
8+
depends = ['setuptools', 'enum34', 'six']
9+
call_hostpython_via_targetpython = False
2210

2311

2412
recipe = ZeroconfRecipe()

0 commit comments

Comments
 (0)