dev-python/jsonschema-3.2.0: 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:15:58 -08:00
committed by Patrick McLean
parent a5a2585440
commit 093519e505

View File

@@ -45,7 +45,9 @@ distutils_enable_tests unittest
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
}