From 10bc81be806dc626ac31707cae3a16c155de7607 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 27 Aug 2020 07:50:40 +0200 Subject: dev-python/pycurl: Hack the version to make upgrade less painful MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the version number so that egg path changes and avoids collisions while switching from setuptools to distutils. Signed-off-by: Michał Górny --- dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild | 3 +++ dev-python/pycurl/pycurl-7.43.0.5.ebuild | 3 +++ 2 files changed, 6 insertions(+) (limited to 'dev-python/pycurl') diff --git a/dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild b/dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild index 1b678aa041e9..e5a319f2804a 100644 --- a/dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild +++ b/dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild @@ -60,6 +60,9 @@ python_prepare_all() { sed -e 's:import wheel:raise ImportError:' -i setup.py || die # these tests are broken with newer versions of bottle sed -e 's:test.*_invalid_utf8:_&:' -i tests/getinfo_test.py || die + # temporary hack to make setuptools->distutils change less painful + # (suggested by Arfrever) + sed -e "/VERSION/s:${PV}:&.0:" -i setup.py || die distutils-r1_python_prepare_all } diff --git a/dev-python/pycurl/pycurl-7.43.0.5.ebuild b/dev-python/pycurl/pycurl-7.43.0.5.ebuild index 208be0af1b8f..321f11ec05b7 100644 --- a/dev-python/pycurl/pycurl-7.43.0.5.ebuild +++ b/dev-python/pycurl/pycurl-7.43.0.5.ebuild @@ -59,6 +59,9 @@ python_prepare_all() { sed -e 's:import wheel:raise ImportError:' -i setup.py || die # these tests are broken with newer versions of bottle sed -e 's:test.*_invalid_utf8:_&:' -i tests/getinfo_test.py || die + # temporary hack to make setuptools->distutils change less painful + # (suggested by Arfrever) + sed -e "/VERSION/s:${PV}:&.0:" -i setup.py || die distutils-r1_python_prepare_all } -- cgit v1.2.3-65-gdbad