dev-python/importlib_metadata-0.23-r1: fix setuptools_scm removal

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2019-11-25 00:23:55 -08:00
committed by Patrick McLean
parent dcc018430d
commit 1771a43611

View File

@@ -51,7 +51,12 @@ python_check_deps() {
python_prepare_all() {
sed -i "/'sphinx.ext.intersphinx'/d" ${PN}/docs/conf.py || die
sed -i "s:use_scm_version=True:version='${PV}':" setup.py || die
# avoid a setuptools_scm dependency
sed -i "s:use_scm_version=True:version='${PV}',name='${PN//-/.}':" setup.py || die
sed -r -i "s:setuptools(_|-)scm[[:space:]]*([><=]{1,2}[[:space:]]*[0-9.a-zA-Z]+|)[[:space:]]*::" \
setup.cfg || die
distutils-r1_python_prepare_all
}