Skip to content

Commit feb0790

Browse files
eacpereiragoffi-contrib
authored andcommitted
Correct references to local files
1 parent 13a4fbb commit feb0790

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pythonforandroid/recipes/levenshtein/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class LevenshteinRecipe(CompiledComponentsPythonRecipe):
1111

1212
def get_recipe_env(self, arch):
1313
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"
14+
libxslt_recipe = Recipe.get_recipe('libxslt', self.ctx)
15+
libxml2_recipe = Recipe.get_recipe('libxml2', self.ctx)
1616
targetpython = "%s/include/python2.7/" % dirname(dirname(self.ctx.hostpython))
17-
env['CC'] += " -I%s/include -I%s -I%s" % (bxml, bxsl, targetpython)
17+
env['CC'] += " -I%s/include -I%s -I%s" % (libxml2_recipe, libxslt_recipe, targetpython)
1818
env['LDSHARED'] = '%s -nostartfiles -shared -fPIC -lpython2.7' % env['CC']
1919
return env
2020

pythonforandroid/recipes/lxml/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def build_arch(self, arch):
2626

2727
def get_recipe_env(self, arch):
2828
env = super(LXMLRecipe, self).get_recipe_env(arch)
29-
bxml = "/home/zgoldberg/.local/share/python-for-android/build/other_builds/libxml2/armeabi/libxml2/"
30-
bxsl = "/home/zgoldberg/.local/share/python-for-android/build/other_builds/libxslt/armeabi/libxslt"
29+
libxslt_recipe = Recipe.get_recipe('libxslt', self.ctx)
30+
libxml2_recipe = Recipe.get_recipe('libxml2', self.ctx)
3131
targetpython = "%s/include/python2.7/" % dirname(dirname(self.ctx.hostpython))
32-
env['CC'] += " -I%s/include -I%s -I%s" % (bxml, bxsl, targetpython)
32+
env['CC'] += " -I%s/include -I%s -I%s" % (libxml2_recipe, libxslt_recipe, targetpython)
3333
env['LDSHARED'] = '%s -nostartfiles -shared -fPIC -lpython2.7' % env['CC']
3434
return env
3535

0 commit comments

Comments
 (0)