summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2020-05-29 18:37:57 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-06-02 00:07:37 +0300
commit868adcbba2c86f1ae349783de7c53360da663a70 (patch)
tree8336d94d1f206625fbe29c16d39e9d85079a7694
parent31ee3411c95832cb7c5ddbebd2467849195a84b7 (diff)
downloadopenbmc-868adcbba2c86f1ae349783de7c53360da663a70.tar.xz
python3-autotools.bbclass: remove unused class
sdbusplus was the only user of this bbclass and now that is moved to meson. Drop unused class. (From meta-phosphor rev: 2d826275ba4eb670fbae81490d819b8c602ecbad) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0b49e9a0acab8dbfacdb67efc9e3422db16e60ba Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r--meta-phosphor/classes/obmc-phosphor-python3-autotools.bbclass38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-python3-autotools.bbclass b/meta-phosphor/classes/obmc-phosphor-python3-autotools.bbclass
deleted file mode 100644
index 89a884a1b..000000000
--- a/meta-phosphor/classes/obmc-phosphor-python3-autotools.bbclass
+++ /dev/null
@@ -1,38 +0,0 @@
-inherit obmc-phosphor-utils
-inherit python3native
-
-OBMC_PYTHON_EXE="python3"
-OBMC_PYTHON_EXE_class-native="nativepython3"
-
-DEPENDS += "python3"
-
-export BUILD_SYS
-export HOST_SYS
-export STAGING_INCDIR
-export STAGING_LIBDIR
-
-PYTHON_AUTOTOOLS_PACKAGE ?= "${PN}"
-
-python() {
- for pkg in listvar_to_list(d, 'PYTHON_AUTOTOOLS_PACKAGE'):
- set_append(d, 'FILES_%s' % pkg,
- d.getVar('PYTHON_SITEPACKAGES_DIR', True))
-}
-
-# python-setuptools does some mangling of the #! in any scripts it installs,
-# which has been reported for years at pypa/setuptools#494. OE has
-# workarounds in distutils3.bbclass, but we cannot inherit that here because
-# it conflicts with autotools.bbclass. Port the un-mangling code here.
-#
-# This finds any ${PYTHON} executable path that got put into the scripts
-# and reverts it back to "/usr/bin/env python3". It also reverts any full
-# ${STAGING_BINDIR_NATIVE} path back to "/usr/bin".
-#
-do_install_append() {
- for i in ${D}${bindir}/* ${D}${sbindir}/*; do
- if [ -f "$i" ]; then
- sed -i -e s:${PYTHON}:${USRBINPATH}/env\ ${OBMC_PYTHON_EXE}:g $i
- sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
- fi
- done
-}