diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2020-04-08 18:27:41 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-04-10 18:05:58 +0300 |
commit | 1592b4fa0815ee8d32ee98045c1937d9fb97d561 (patch) | |
tree | b981c0f8bc4f0707f3533c9de48bb032ffadc681 /meta-phosphor/classes | |
parent | f732694ec4945cf7373fab6261bd0262a112d733 (diff) | |
download | openbmc-1592b4fa0815ee8d32ee98045c1937d9fb97d561.tar.xz |
obmc-phosphor-python-autotools: remove unused bbclass
(From meta-phosphor rev: e95fd00d32d7032cea056ef8a077903810bcc6b7)
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia367acbef791cb1542734c53bc208c5eabc7e22e
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass b/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass deleted file mode 100644 index 0922a1ab6..000000000 --- a/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass +++ /dev/null @@ -1,30 +0,0 @@ -inherit obmc-phosphor-utils -inherit pythonnative - -DEPENDS += "python" - -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)) -} - -# In order to facilitate packages that use python3native, but also -# depend on python2 scripts we need to replace the #! to be nativepython -# instead of just python. Without this, `which python` points to the -# host's python, which is not the one where required modules would be -# installed. -do_install_append_class-native() { - for i in ${D}${bindir}/* ${D}${sbindir}/*; do - if [ -f "$i" ]; then - sed -i -e s:env\ python:env\ nativepython:g $i - fi - done -} |