Skip to content

Commit 16d878e

Browse files
ZachGoldberggoffi-contrib
authored andcommitted
Fix levenshtein
1 parent 75d21a1 commit 16d878e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pythonforandroid/recipes/levenshtein/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pythonforandroid.toolchain import CompiledComponentsPythonRecipe
2-
2+
from os.path import dirname
33

44
class 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+
1221
recipe = LevenshteinRecipe()

pythonforandroid/recipes/lxml/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

3736
recipe = LXMLRecipe()

0 commit comments

Comments
 (0)