Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 2/3] dev-python/tikzplotlib: Use distutils-r1 pyproject.toml support
Date: Sat, 06 Feb 2021 11:54:44
Message-Id: 20210206115408.118297-2-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/3] distutils-r1.eclass: Fix setuptools without setup.py by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild | 16 +---------------
4 1 file changed, 1 insertion(+), 15 deletions(-)
5
6 diff --git a/dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild b/dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild
7 index b1d6c8827e1d..eec9580243fc 100644
8 --- a/dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild
9 +++ b/dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild
10 @@ -3,6 +3,7 @@
11
12 EAPI=7
13
14 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
15 PYTHON_COMPAT=( python3_{7..9} )
16
17 inherit distutils-r1 virtualx
18 @@ -35,21 +36,6 @@ BDEPEND="
19 distutils_enable_tests pytest
20 distutils_enable_sphinx doc dev-python/mock
21
22 -python_prepare_all() {
23 - # setup.py was removed in commit f04323cfa575caf8a25a9236f55fe6baf1a33b20
24 - # for some reason, DISTUTULS_USE_SETUPTOOLS="pyproject.toml" is not working
25 - # it complains about file not found, setup.cfg does exist
26 -
27 - cat > setup.py <<EOF || die
28 -from setuptools import setup
29 -
30 -if __name__ == "__main__":
31 - setup()
32 -EOF
33 -
34 - distutils-r1_python_prepare_all
35 -}
36 -
37 python_test() {
38 local -x MPLBACKEND=Agg
39 virtx pytest -vv
40 --
41 2.30.0

Replies

Subject Author
Re: [gentoo-dev] [PATCH 2/3] dev-python/tikzplotlib: Use distutils-r1 pyproject.toml support Andrew Ammerlaan <andrewammerlaan@××××××.net>