summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2019-01-22 14:48:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-23 07:57:07 +0000
commitba0b32ebc3520c367915657b8fb8878be5bfde92 (patch)
treea5a7e4a1e748256becb888207ca2f756b8b32456 /meta/classes
parentccad1dc80d4e2d402cc1a26a368a1a362964f0ce (diff)
downloadpoky-ba0b32ebc3520c367915657b8fb8878be5bfde92.tar.gz
remove unused distutils-tools.bbclass
* As far as I can see nothing uses it * From commit history it seems distutils-tools came in accidentally (From OE-Core rev: a4edfa4cf451bf412525887b5b24b9db6486ae97) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/distutils-tools.bbclass73
1 files changed, 0 insertions, 73 deletions
diff --git a/meta/classes/distutils-tools.bbclass b/meta/classes/distutils-tools.bbclass
deleted file mode 100644
index 6f2880ea01..0000000000
--- a/meta/classes/distutils-tools.bbclass
+++ /dev/null
@@ -1,73 +0,0 @@
1DISTUTILS_BUILD_ARGS ?= ""
2DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}"
3DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \
4 --install-data=${STAGING_DATADIR}"
5DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
6 --install-data=${D}/${datadir}"
7
8distutils_do_compile() {
9 STAGING_INCDIR=${STAGING_INCDIR} \
10 STAGING_LIBDIR=${STAGING_LIBDIR} \
11 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py build ${DISTUTILS_BUILD_ARGS} || \
12 bbfatal_log "${PYTHON_PN} setup.py build_ext execution failed."
13}
14
15distutils_stage_headers() {
16 install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
17 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \
18 bbfatal_log "${PYTHON_PN} setup.py install_headers execution failed."
19}
20
21distutils_stage_all() {
22 STAGING_INCDIR=${STAGING_INCDIR} \
23 STAGING_LIBDIR=${STAGING_LIBDIR} \
24 install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
25 PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} \
26 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \
27 bbfatal_log "${PYTHON_PN} setup.py install (stage) execution failed."
28}
29
30distutils_do_install() {
31 echo "Beginning ${PN} Install ..."
32 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
33 echo "Step 2 of ${PN} Install ..."
34 STAGING_INCDIR=${STAGING_INCDIR} \
35 STAGING_LIBDIR=${STAGING_LIBDIR} \
36 PYTHONPATH=${D}/${PYTHON_SITEPACKAGES_DIR} \
37 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \
38 bbfatal_log "${PYTHON_PN} setup.py install execution failed."
39
40 echo "Step 3 of ${PN} Install ..."
41 # support filenames with *spaces*
42 find ${D} -name "*.py" -print0 | while read -d $'\0' i ; do \
43 sed -i -e s:${D}::g $i
44 done
45
46 echo "Step 4 of ${PN} Install ..."
47 if test -e ${D}${bindir} ; then
48 for i in ${D}${bindir}/* ; do \
49 sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
50 done
51 fi
52
53 echo "Step 4 of ${PN} Install ..."
54 if test -e ${D}${sbindir}; then
55 for i in ${D}${sbindir}/* ; do \
56 sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
57 done
58 fi
59
60 echo "Step 5 of ${PN} Install ..."
61 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/easy-install.pth
62
63 #
64 # FIXME: Bandaid against wrong datadir computation
65 #
66 if [ -e ${D}${datadir}/share ]; then
67 mv -f ${D}${datadir}/share/* ${D}${datadir}/
68 fi
69}
70
71#EXPORT_FUNCTIONS do_compile do_install
72
73export LDSHARED="${CCLD} -shared"