dev-python/boto: Apply Flatcar modifications

This commit is contained in:
Krzesimir Nowak 2021-12-07 13:17:37 +01:00
parent 650892196a
commit ce54fe641d

View File

@ -51,6 +51,12 @@ src_prepare() {
# fix tests # fix tests
mkdir -p "${HOME}"/.ssh || die mkdir -p "${HOME}"/.ssh || die
: > "${HOME}"/.ssh/known_hosts || 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 distutils-r1_src_prepare
} }