diff --git a/sdk_container/src/third_party/coreos-overlay/dev-python/boto/boto-2.49.0-r4.ebuild b/sdk_container/src/third_party/coreos-overlay/dev-python/boto/boto-2.49.0-r4.ebuild index 5e32f2f4e2..4dd30bd7dc 100644 --- a/sdk_container/src/third_party/coreos-overlay/dev-python/boto/boto-2.49.0-r4.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/dev-python/boto/boto-2.49.0-r4.ebuild @@ -51,6 +51,12 @@ src_prepare() { # fix tests mkdir -p "${HOME}"/.ssh || die : > "${HOME}"/.ssh/known_hosts || die + # Flatcar: Do not import boto only for the version number in + # setup.py - it ends up trying to import six, which we have + # unbundled and the six module effectively becomes a BDEPEND + # instead of RDEPEND. Drop the import and define the + # __variable__ instead. + sed -i -e 's/^from boto import __version__$/__version__ = '"'${PV}'"'/' setup.py distutils-r1_src_prepare }