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 11from pythonforandroid .toolchain import CompiledComponentsPythonRecipe
2-
2+ from os . path import dirname
33
44class LevenshteinRecipe (CompiledComponentsPythonRecipe ):
55 name = "levenshtein"
@@ -9,4 +9,13 @@ class LevenshteinRecipe(CompiledComponentsPythonRecipe):
99
1010 call_hostpython_via_targetpython = False
1111
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+
1221recipe = LevenshteinRecipe ()
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ def get_recipe_env(self, arch):
3131 targetpython = "%s/include/python2.7/" % dirname (dirname (self .ctx .hostpython ))
3232 env ['CC' ] += " -I%s/include -I%s -I%s" % (bxml , bxsl , targetpython )
3333 env ['LDSHARED' ] = '%s -nostartfiles -shared -fPIC -lpython2.7' % env ['CC' ]
34- print env ['LDSHARED' ]
3534 return env
3635
3736recipe = LXMLRecipe ()
You can’t perform that action at this time.
0 commit comments