Skip to content

Commit 1a222e0

Browse files
authored
Merge pull request #1480 from JonasT/lxmlfix2
Fix libxslt not getting proper libxml2 path, fixes #1479
2 parents 80da6a3 + ebb2b95 commit 1a222e0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pythonforandroid/recipes/libxslt/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pythonforandroid.toolchain import Recipe, shprint, shutil, current_directory
2-
from os.path import exists, join, dirname
2+
from os.path import exists, join
33
import sh
44

55

@@ -22,10 +22,8 @@ def build_arch(self, arch):
2222
# If the build is done with /bin/sh things blow up,
2323
# try really hard to use bash
2424
env["CC"] += " -I%s" % self.get_build_dir(arch.arch)
25-
libxml = (
26-
dirname(dirname(self.get_build_container_dir(arch.arch)))
27-
+ "/libxml2/%s/libxml2" % arch.arch
28-
)
25+
libxml = Recipe.get_recipe(
26+
'libxml2', self.ctx).get_build_dir(arch.arch)
2927
shprint(
3028
sh.Command("./configure"),
3129
"--build=i686-pc-linux-gnu",

0 commit comments

Comments
 (0)