aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2019-11-30 14:50:31 -0800
committerTim Orling <ticotimo@gmail.com>2019-12-01 18:08:12 -0800
commita54c8165dbf75e8db0aa130668c90e5401d47354 (patch)
treea0b4479ffd670cc548d0ad2fc22de805f08750fc /classes
parent18615f47dbbd109bc2350b86e078da93d066e5e5 (diff)
downloadmeta-python2-a54c8165dbf75e8db0aa130668c90e5401d47354.tar.gz
meta-python2-a54c8165dbf75e8db0aa130668c90e5401d47354.tar.bz2
meta-python2-a54c8165dbf75e8db0aa130668c90e5401d47354.zip
python-backports-init: Add helper class and recipe
Recipes that install in the backports namespace have a tendency to conflict in the installation of .../site-packages/backports/__init__.py Add a class and recipe to help avoid the conflict. Modify recipes that are affected: - python-backports-functools-lru-cache - python-backports-ssl - python-configparser Signed-off-by: Tim Orling <ticotimo@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/python-backports-init.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/python-backports-init.bbclass b/classes/python-backports-init.bbclass
new file mode 100644
index 00000000..727bc4a8
--- /dev/null
+++ b/classes/python-backports-init.bbclass
@@ -0,0 +1,7 @@
+inherit python-dir
+
+RDEPENDS_${PN} += "python-backports-init"
+
+do_install_prepend() {
+ rm -rf $(find . -path "*/backports/__init__.py" -type f)
+}