app-admin/salt: Remove contextvars dependency

Closes: https://bugs.gentoo.org/799431
Closes: https://github.com/gentoo/gentoo/pull/21547
Signed-off-by: Francisco Javier Félix <ffelix@inode64.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Francisco Javier Félix
2021-07-07 10:37:41 +02:00
committed by Matt Turner
parent 31faab1325
commit d4af5bb08d

View File

@@ -143,6 +143,9 @@ python_prepare() {
local abc
abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die
find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die
# removes contextvars, see bug: https://bugs.gentoo.org/799431
sed -i '/^contextvars/d' requirements/base.txt || die
}
python_install_all() {