dev-python/carbon: fix logging with Python 3, bug #661340

Closes: https://bugs.gentoo.org/661340
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Fabian Groffen
2018-07-22 18:45:19 +02:00
parent 4abcda91d6
commit a824c0b9ad

View File

@@ -24,6 +24,9 @@ RDEPEND="
=dev-python/whisper-${PV}*[${PYTHON_USEDEP}]"
python_prepare_all() {
# bug #661340, excerpt from upstream, next release should have it
sed -i -e "s/'r+'/'rb+'/" lib/carbon/log.py || die
# Do not install the configuration and data files. We install them
# somewhere sensible by hand.
sed -i -e '/data_files=install_files,/d' setup.py || die