dev-python/jaraco-packaging-6.2-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:05:42 -08:00
committed by Patrick McLean
parent 252b463893
commit 155d45b282
@@ -49,7 +49,9 @@ python_check_deps() {
python_prepare_all() {
# avoid a setuptools_scm dependency
sed -i "s:use_scm_version=True:version='${PV}':" setup.py || die
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
}