dev-python/python-dateutil-2.8.1: 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 16:08:53 -08:00
committed by Patrick McLean
parent 26898d1dd8
commit c38d7e49cb

View File

@@ -43,7 +43,9 @@ distutils_enable_tests pytest
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
# don't install zoneinfo tarball
sed -i '/package_data=/d' setup.py || die