From 1771a4361164156b459c92e70d73a942de64d6fa Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Mon, 25 Nov 2019 00:23:55 -0800 Subject: 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 --- dev-python/importlib_metadata/importlib_metadata-0.23-r1.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dev-python/importlib_metadata') diff --git a/dev-python/importlib_metadata/importlib_metadata-0.23-r1.ebuild b/dev-python/importlib_metadata/importlib_metadata-0.23-r1.ebuild index 11128514911f..9c6d5ccab1dc 100644 --- a/dev-python/importlib_metadata/importlib_metadata-0.23-r1.ebuild +++ b/dev-python/importlib_metadata/importlib_metadata-0.23-r1.ebuild @@ -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 } -- cgit v1.2.3-65-gdbad