Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycurl/
Date: Mon, 24 Aug 2020 12:35:20
Message-Id: 1598272512.f1c296ac784183126fc5707fe08742b1a8e302d4.mgorny@gentoo
1 commit: f1c296ac784183126fc5707fe08742b1a8e302d4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 24 12:34:31 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 24 12:35:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1c296ac
7
8 dev-python/pycurl: Force building using distutils
9
10 Bug: https://bugs.gentoo.org/738798
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/pycurl/pycurl-7.43.0.5.ebuild | 3 +++
14 1 file changed, 3 insertions(+)
15
16 diff --git a/dev-python/pycurl/pycurl-7.43.0.5.ebuild b/dev-python/pycurl/pycurl-7.43.0.5.ebuild
17 index d4876adf5b1..208be0af1b8 100644
18 --- a/dev-python/pycurl/pycurl-7.43.0.5.ebuild
19 +++ b/dev-python/pycurl/pycurl-7.43.0.5.ebuild
20 @@ -3,6 +3,7 @@
21
22 EAPI=7
23
24 +DISTUTILS_USE_SETUPTOOLS=manual
25 # The selftests fail with pypy, and urlgrabber segfaults for me.
26 PYTHON_COMPAT=( python3_{6,7,8,9} )
27
28 @@ -54,6 +55,8 @@ PATCHES=(
29
30 python_prepare_all() {
31 sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die
32 + # disable automagic use of setuptools
33 + sed -e 's:import wheel:raise ImportError:' -i setup.py || die
34 # these tests are broken with newer versions of bottle
35 sed -e 's:test.*_invalid_utf8:_&:' -i tests/getinfo_test.py || die
36 distutils-r1_python_prepare_all