diff options
-rw-r--r-- | dev-python/python-dateutil/python-dateutil-2.8.1.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-python/python-dateutil/python-dateutil-2.8.1.ebuild b/dev-python/python-dateutil/python-dateutil-2.8.1.ebuild index f2c9ffa8ab98..f7e2ed073d29 100644 --- a/dev-python/python-dateutil/python-dateutil-2.8.1.ebuild +++ b/dev-python/python-dateutil/python-dateutil-2.8.1.ebuild @@ -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 |