Skip to content

Commit e259b1c

Browse files
committed
use builtin should_build;
1 parent 7ef857d commit e259b1c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pythonforandroid/recipes/pyleveldb/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ class PyLevelDBRecipe(PythonRecipe):
66
version = '0.193'
77
url = 'https://pypi.python.org/packages/source/l/leveldb/leveldb-{version}.tar.gz'
88
depends = ['leveldb', 'hostpython2', 'python2', 'setuptools']
9-
call_hostpython_via_targetpython = False
109
patches = ['bindings-only.patch']
11-
12-
def should_build(self, arch):
13-
return not self.ctx.has_package('leveldb', arch.arch)
10+
call_hostpython_via_targetpython = False
11+
site_packages_name = 'leveldb'
1412

1513
def build_arch(self, arch):
1614
env = self.get_recipe_env(arch)

0 commit comments

Comments
 (0)