From 10c65fc18998d302f34634ffceaf31ab335056dd Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Fri, 12 Mar 2021 15:44:52 +0100 Subject: recipes: add conditional PNBLACKLIST in all recipes except python-native * python-native is an exception because there is still e.g. chromium depending on _native_ python and a lot of people use it in some form, once https://bugs.chromium.org/p/chromium/issues/detail?id=942720 is resolved in stable chromium release the same will be set in python-native * https://www.python.org/doc/sunset-python-2/ * https://python3statement.org/ Signed-off-by: Martin Jansa --- recipes-devtools/python/python-mock_3.0.5.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'recipes-devtools/python/python-mock_3.0.5.bb') diff --git a/recipes-devtools/python/python-mock_3.0.5.bb b/recipes-devtools/python/python-mock_3.0.5.bb index db71066..46c8d90 100644 --- a/recipes-devtools/python/python-mock_3.0.5.bb +++ b/recipes-devtools/python/python-mock_3.0.5.bb @@ -20,3 +20,5 @@ RDEPENDS_${PN} += " \ python-pbr \ python-funcsigs \ " + +PNBLACKLIST[python-mock] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}" -- cgit 1.2.3-korg