commit:     10bc81be806dc626ac31707cae3a16c155de7607
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 05:50:40 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 27 05:55:05 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10bc81be

dev-python/pycurl: Hack the version to make upgrade less painful

Change the version number so that egg path changes and avoids collisions
while switching from setuptools to distutils.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 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(+)

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 1b678aa041e..e5a319f2804 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 208be0af1b8..321f11ec05b 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
 }
 

Reply via email to