phosphor-tiny: Remove python-gevent.bb .py files
Only the .pyc files are needed from the gevent recipe.
This saves us ~130KB of rofs space.
Reference openbmc/openbmc#3372
(From meta-phosphor rev: 9aa5a5623a08708cce8fa898164e9adae5c9b193)
Change-Id: I3454bbd93e52be340374feeb15f36ea7f8c0b43c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/recipes-devtools/python/python-gevent_1.2.2.bbappend b/meta-phosphor/recipes-devtools/python/python-gevent_1.2.2.bbappend
new file mode 100644
index 0000000..924d108
--- /dev/null
+++ b/meta-phosphor/recipes-devtools/python/python-gevent_1.2.2.bbappend
@@ -0,0 +1,6 @@
+# Remove all python .py files from gevent recipe. Only the .pyc
+# files are required. Only do if openbmc-phosphor-tiny distro
+# feature is enabled.
+do_install_append_openbmc-phosphor-tiny() {
+ find ${D}/${PYTHON_SITEPACKAGES_DIR}/gevent/ -name \*.py -exec rm {} \;
+}