File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
pythonforandroid/recipes/apsw Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 6
6
class ApswRecipe (PythonRecipe ):
7
7
version = '3.15.0-r1'
8
8
url = 'https://github.com/rogerbinns/apsw/archive/{version}.tar.gz'
9
- depends = ['sqlite3' , 'hostpython2 ' , 'python2' , 'setuptools' ]
9
+ depends = ['sqlite3' , ( 'python2 ' , 'python3' ) , 'setuptools' ]
10
10
call_hostpython_via_targetpython = False
11
11
site_packages_name = 'apsw'
12
12
@@ -24,14 +24,8 @@ def build_arch(self, arch):
24
24
25
25
def get_recipe_env (self , arch ):
26
26
env = super (ApswRecipe , self ).get_recipe_env (arch )
27
- env ['PYTHON_ROOT' ] = self .ctx .get_python_install_dir ()
28
- env ['CFLAGS' ] += ' -I' + env ['PYTHON_ROOT' ] + '/include/python2.7' + \
29
- ' -I' + self .get_recipe ('sqlite3' , self .ctx ).get_build_dir (arch .arch )
30
- # Set linker to use the correct gcc
31
- env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
32
- env ['LDFLAGS' ] += ' -L' + env ['PYTHON_ROOT' ] + '/lib' + \
33
- ' -lpython2.7' + \
34
- ' -lsqlite3'
27
+ env ['CFLAGS' ] += ' -I' + self .get_recipe ('sqlite3' , self .ctx ).get_build_dir (arch .arch )
28
+ env ['LDFLAGS' ] += ' -lsqlite3'
35
29
return env
36
30
37
31
You can’t perform that action at this time.
0 commit comments