1 |
commit: 35f5ab98f0fee6ed07a95ce8ed0477d4082ad539 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 09:35:56 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 10:20:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35f5ab98 |
7 |
|
8 |
dev-python/matplotlib: Stop using in-source build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/matplotlib/matplotlib-3.5.2.ebuild | 7 ++----- |
13 |
1 file changed, 2 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/matplotlib/matplotlib-3.5.2.ebuild b/dev-python/matplotlib/matplotlib-3.5.2.ebuild |
16 |
index 0aea928dc2d7..4184c7743b79 100644 |
17 |
--- a/dev-python/matplotlib/matplotlib-3.5.2.ebuild |
18 |
+++ b/dev-python/matplotlib/matplotlib-3.5.2.ebuild |
19 |
@@ -115,10 +115,6 @@ BDEPEND=" |
20 |
) |
21 |
" |
22 |
|
23 |
-# A few C++ source files are written to srcdir. |
24 |
-# Other than that, the ebuild shall be fit for out-of-source build. |
25 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
26 |
- |
27 |
distutils_enable_tests pytest |
28 |
|
29 |
pkg_setup() { |
30 |
@@ -256,6 +252,8 @@ python_compile_all() { |
31 |
} |
32 |
|
33 |
src_test() { |
34 |
+ mkdir build || die |
35 |
+ ln -s "${WORKDIR}/freetype-${FT_PV}" build/ || die |
36 |
virtx distutils-r1_src_test |
37 |
} |
38 |
|
39 |
@@ -272,7 +270,6 @@ python_test() { |
40 |
grep -v system_freetype "${BUILD_DIR}"/setup.cfg \ |
41 |
> "${BUILD_DIR}"/test-setup.cfg || die |
42 |
local -x MPLSETUPCFG="${BUILD_DIR}"/test-setup.cfg |
43 |
- ln -s "${WORKDIR}/freetype-${FT_PV}" "${BUILD_DIR}" || die |
44 |
distutils-r1_python_compile -j1 --build-lib="${BUILD_DIR}"/test-lib |
45 |
local -x PYTHONPATH=${BUILD_DIR}/test-lib:${PYTHONPATH} |