meta-openembedded/meta-python/recipes-devtools/python/python-lxml.inc
Andreas Müller db539ce16e python-lxml: do not overwrite inherited DEPENDS
python-lxml recipe inherits setuptools3 and after that includes
python-lxml.inc. In the current situation DEPENDS inherited by
setuptools3-tree are overwritten causing:

DEBUG: Executing shell function do_compile
/home/superandy/tmp/oe-core-glibc/work/x86_64-linux/python3-lxml-native/3.4.4-r0/temp/run.do_compile.30454: line 118: /home/superandy/tmp/oe-core-glibc/sysroots/x86_64-linux/usr/bin/python3-native/python3: No such file or directory
ERROR: python3 setup.py build_ext execution failed.
WARNING: /home/superandy/tmp/oe-core-glibc/work/x86_64-linux/python3-lxml-native/3.4.4-r0/temp/run.do_compile.30454:1 exit 1 from
  exit 1
ERROR: Function failed: do_compile (log file is located at /home/superandy/tmp/oe-core-glibc/work/x86_64-linux/python3-lxml-native/3.4.4-r0/temp/log.do_compile.30454)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-11-02 14:59:26 +01:00

36 lines
1.2 KiB
PHP

SUMMARY = "Python XML bindings for libxml2 and libxslt"
DESCRIPTION = "Powerful and Pythonic XML processing library combining \
libxml2/libxslt with the ElementTree API."
HOMEPAGE = "http://codespeak.net/lxml"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=f9f1dc24f720c143c2240df41fe5073b"
SRCNAME = "lxml"
DEPENDS += "libxml2 libxslt"
SRC_URI = "http://pypi.python.org/packages/source/l/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "a9a65972afc173ec7a39c585f4eea69c"
SRC_URI[sha256sum] = "b3d362bac471172747cda3513238f115cbd6c5f8b8e6319bf6a97a7892724099"
S = "${WORKDIR}/${SRCNAME}-${PV}"
DISTUTILS_BUILD_ARGS += " \
--with-xslt-config='pkg-config libxslt' \
--with-xml2-config='pkg-config libxml-2.0' \
"
DISTUTILS_INSTALL_ARGS += " \
--with-xslt-config='pkg-config libxslt' \
--with-xml2-config='pkg-config libxml-2.0' \
"
do_configure_prepend() {
sed -i -e 's/--version/--modversion/' ${B}/setupinfo.py
}
BBCLASSEXTEND = "native nativesdk"
RDEPENDS_${PN} += "libxml2 libxslt ${PYTHON_PN}-compression"
RDEPENDS_${PN}_class-native = "libxml2-native libxslt-native"