diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2019-11-25 00:32:16 -0800 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2019-11-25 00:32:16 -0800 |
commit | 0949b444806fb05d10bdd19673d525d740bef226 (patch) | |
tree | 315856cac0b0b91e23bc0ed1b251b11d547cdaf0 /dev-python/jaraco-envs | |
parent | dev-python/twine-3.0.0: fix setuptools_scm removal (diff) | |
download | gentoo-0949b444806fb05d10bdd19673d525d740bef226.tar.gz gentoo-0949b444806fb05d10bdd19673d525d740bef226.tar.bz2 gentoo-0949b444806fb05d10bdd19673d525d740bef226.zip |
dev-python/jaraco-envs-1.0.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>
Diffstat (limited to 'dev-python/jaraco-envs')
-rw-r--r-- | dev-python/jaraco-envs/jaraco-envs-1.0.1.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-python/jaraco-envs/jaraco-envs-1.0.1.ebuild b/dev-python/jaraco-envs/jaraco-envs-1.0.1.ebuild index 8c06fc55d5f2..c325ff5c4597 100644 --- a/dev-python/jaraco-envs/jaraco-envs-1.0.1.ebuild +++ b/dev-python/jaraco-envs/jaraco-envs-1.0.1.ebuild @@ -27,8 +27,10 @@ RESTRICT="test" S="${WORKDIR}/${MY_P}" python_prepare_all() { - # avoid a dep on setuptools_scm - 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 } |