mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
python: Drop staging functions. If failures occur we just need to improve do_install
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -16,10 +16,6 @@ export HOST_SYS
|
|||||||
export STAGING_LIBDIR
|
export STAGING_LIBDIR
|
||||||
export STAGING_INCDIR
|
export STAGING_INCDIR
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
autotools_stage_all
|
|
||||||
}
|
|
||||||
|
|
||||||
RDEPENDS = "python-io python-logging python-stringold python-threading python-xml"
|
RDEPENDS = "python-io python-logging python-stringold python-threading python-xml"
|
||||||
|
|
||||||
FILES_${PN}-dev += "${libdir}/pkgconfig
|
FILES_${PN}-dev += "${libdir}/pkgconfig
|
||||||
|
|||||||
@@ -2,9 +2,5 @@ require python-iniparse_${PV}.bb
|
|||||||
inherit native
|
inherit native
|
||||||
DEPENDS = "python-native"
|
DEPENDS = "python-native"
|
||||||
RDEPENDS = ""
|
RDEPENDS = ""
|
||||||
|
NATIVE_INSTALL_WORKS = "1"
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
|
||||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
|
||||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -10,10 +10,3 @@ S = "${WORKDIR}/pycairo-${PV}"
|
|||||||
|
|
||||||
inherit distutils pkgconfig
|
inherit distutils pkgconfig
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
install -d ${STAGING_INCDIR}
|
|
||||||
install -m 0644 cairo/pycairo.h ${STAGING_INCDIR}
|
|
||||||
|
|
||||||
# nasty pkgconfig fix necessary here
|
|
||||||
sed -i -e s,${STAGING_DIR_NATIVE},, pycairo.pc
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -7,12 +7,14 @@ PARALLEL_MAKE = ""
|
|||||||
|
|
||||||
inherit native
|
inherit native
|
||||||
|
|
||||||
|
NATIVE_INSTALL_WORKS = "1"
|
||||||
|
|
||||||
SRC_URI = "\
|
SRC_URI = "\
|
||||||
ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
|
ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
|
||||||
# file://python-path.patch;patch=1 \
|
# file://python-path.patch;patch=1 \
|
||||||
"
|
"
|
||||||
|
|
||||||
do_stage_append() {
|
do_install_append() {
|
||||||
install -d ${STAGING_BINDIR}
|
install -d ${D}${bindir}
|
||||||
install -m 0755 gobject/generate-constants ${STAGING_BINDIR}/gobject-generate-constants
|
install -m 0755 gobject/generate-constants ${D}${bindir}/gobject-generate-constants
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,14 +22,6 @@ export HOST_SYS
|
|||||||
export STAGING_INCDIR
|
export STAGING_INCDIR
|
||||||
export STAGING_LIBDIR
|
export STAGING_LIBDIR
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
autotools_stage_all
|
|
||||||
install -d ${STAGING_LIBDIR}/../share/pygobject/
|
|
||||||
cp -dpfR docs/* ${STAGING_LIBDIR}/../share/pygobject/
|
|
||||||
install -d ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
|
|
||||||
cp docs/style.css ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGES += "${PN}-lib"
|
PACKAGES += "${PN}-lib"
|
||||||
|
|
||||||
RDEPENDS_${PN} += "python-textutils"
|
RDEPENDS_${PN} += "python-textutils"
|
||||||
|
|||||||
@@ -49,13 +49,3 @@ FILES_${PN}-dev += "\
|
|||||||
${bindir}/pygtk-* \
|
${bindir}/pygtk-* \
|
||||||
${datadir}/pygtk/2.0"
|
${datadir}/pygtk/2.0"
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
autotools_stage_includes
|
|
||||||
sed -i s:/usr/share:${STAGING_DATADIR}: codegen/pygtk-codegen-2.0
|
|
||||||
install -m 0755 codegen/pygtk-codegen-2.0 ${STAGING_BINDIR_NATIVE}/
|
|
||||||
install -d ${STAGING_DATADIR}/pygtk/2.0/codegen
|
|
||||||
install -d ${STAGING_DATADIR}/pygtk/2.0/defs/
|
|
||||||
cp -pPr codegen/*.py* ${STAGING_DATADIR}/pygtk/2.0/codegen/
|
|
||||||
cp -pPr *.defs ${STAGING_DATADIR}/pygtk/2.0/defs/
|
|
||||||
cp -pPr gtk/*.defs ${STAGING_DATADIR}/pygtk/2.0/defs/
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -3,8 +3,4 @@ inherit native
|
|||||||
DEPENDS = "python-native"
|
DEPENDS = "python-native"
|
||||||
RDEPENDS = ""
|
RDEPENDS = ""
|
||||||
|
|
||||||
do_stage() {
|
NATIVE_INSTALL_WORKS = "1"
|
||||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
|
||||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
|
||||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ SECTION = "devel/python"
|
|||||||
PRIORITY = "optional"
|
PRIORITY = "optional"
|
||||||
LICENSE = "GPL"
|
LICENSE = "GPL"
|
||||||
SRCNAME = "Pyrex"
|
SRCNAME = "Pyrex"
|
||||||
PR = "ml1"
|
PR = "ml2"
|
||||||
|
|
||||||
SRC_URI = "\
|
SRC_URI = "\
|
||||||
http://www.cosc.canterbury.ac.nz/greg.ewing/python/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \
|
http://www.cosc.canterbury.ac.nz/greg.ewing/python/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \
|
||||||
|
|||||||
@@ -3,14 +3,5 @@ inherit native
|
|||||||
DEPENDS = "python-native"
|
DEPENDS = "python-native"
|
||||||
RDEPENDS = ""
|
RDEPENDS = ""
|
||||||
|
|
||||||
do_stage() {
|
NATIVE_INSTALL_WORKS = "1"
|
||||||
STAGING_LIBDIR=${STAGING_LIBDIR} \
|
|
||||||
STAGING_INCDIR=${STAGING_INCDIR} \
|
|
||||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
|
||||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_LIBDIR}/.. --install-data=${STAGING_DATADIR} || \
|
|
||||||
oefatal "python setup.py install execution failed."
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -3,8 +3,5 @@ inherit native
|
|||||||
DEPENDS = "python-native"
|
DEPENDS = "python-native"
|
||||||
RDEPENDS = ""
|
RDEPENDS = ""
|
||||||
|
|
||||||
do_stage() {
|
NATIVE_INSTALL_WORKS = "1"
|
||||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
|
||||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
|
||||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,8 +5,4 @@ RDEPENDS = ""
|
|||||||
|
|
||||||
#BUILD_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0"
|
#BUILD_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0"
|
||||||
|
|
||||||
do_stage() {
|
NATIVE_INSTALL_WORKS = "1"
|
||||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
|
||||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
|
||||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user