blob: 73b016fc096d9864ad720acadddba247a00d4a5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
inherit distutils
# Scripts want to install "/etc", so we need "--root" instead of setting install-data stuff
# to remain compatible with previous versions.
DISTUTILS_INSTALL_ARGS = "\
--root=${D} \
--install-data=${datadir} \
--install-lib=${libdir}/enigma2/python/Plugins \
"
# Remove "egg-info" files. If datadir or site-packages dir is empty, remove it.
distutils_do_install_append() {
rm -f ${D}${libdir}/enigma2/python/Plugins/*.egg-info
rmdir -p --ignore-fail-on-non-empty ${D}${datadir} ${D}/${PYTHON_SITEPACKAGES_DIR} || true
}
|