File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
from pythonforandroid .toolchain import CompiledComponentsPythonRecipe
2
-
2
+ from os . path import dirname
3
3
4
4
class LevenshteinRecipe (CompiledComponentsPythonRecipe ):
5
5
name = "levenshtein"
@@ -9,4 +9,13 @@ class LevenshteinRecipe(CompiledComponentsPythonRecipe):
9
9
10
10
call_hostpython_via_targetpython = False
11
11
12
+ def get_recipe_env (self , arch ):
13
+ env = super (LevenshteinRecipe , self ).get_recipe_env (arch )
14
+ bxml = "/home/zgoldberg/.local/share/python-for-android/build/other_builds/libxml2/armeabi/libxml2/"
15
+ bxsl = "/home/zgoldberg/.local/share/python-for-android/build/other_builds/libxslt/armeabi/libxslt"
16
+ targetpython = "%s/include/python2.7/" % dirname (dirname (self .ctx .hostpython ))
17
+ env ['CC' ] += " -I%s/include -I%s -I%s" % (bxml , bxsl , targetpython )
18
+ env ['LDSHARED' ] = '%s -nostartfiles -shared -fPIC -lpython2.7' % env ['CC' ]
19
+ return env
20
+
12
21
recipe = LevenshteinRecipe ()
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ def get_recipe_env(self, arch):
31
31
targetpython = "%s/include/python2.7/" % dirname (dirname (self .ctx .hostpython ))
32
32
env ['CC' ] += " -I%s/include -I%s -I%s" % (bxml , bxsl , targetpython )
33
33
env ['LDSHARED' ] = '%s -nostartfiles -shared -fPIC -lpython2.7' % env ['CC' ]
34
- print env ['LDSHARED' ]
35
34
return env
36
35
37
36
recipe = LXMLRecipe ()
You can’t perform that action at this time.
0 commit comments