diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2019-11-25 00:23:55 -0800 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2019-11-25 00:23:55 -0800 |
commit | 1771a4361164156b459c92e70d73a942de64d6fa (patch) | |
tree | a9c887383be32f539126d90ff8828813da99cb10 /dev-python/importlib_metadata | |
parent | dev-python/zipp-0.6.0-r1: fix setuptools_scm removal (diff) | |
download | gentoo-1771a4361164156b459c92e70d73a942de64d6fa.tar.gz gentoo-1771a4361164156b459c92e70d73a942de64d6fa.tar.bz2 gentoo-1771a4361164156b459c92e70d73a942de64d6fa.zip |
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 <chutzpah@gentoo.org>
Diffstat (limited to 'dev-python/importlib_metadata')
-rw-r--r-- | dev-python/importlib_metadata/importlib_metadata-0.23-r1.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
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 } |