From 35f5ab98f0fee6ed07a95ce8ed0477d4082ad539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 3 May 2022 11:35:56 +0200 Subject: dev-python/matplotlib: Stop using in-source build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/matplotlib/matplotlib-3.5.2.ebuild | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dev-python/matplotlib') diff --git a/dev-python/matplotlib/matplotlib-3.5.2.ebuild b/dev-python/matplotlib/matplotlib-3.5.2.ebuild index 0aea928dc2d7..4184c7743b79 100644 --- a/dev-python/matplotlib/matplotlib-3.5.2.ebuild +++ b/dev-python/matplotlib/matplotlib-3.5.2.ebuild @@ -115,10 +115,6 @@ BDEPEND=" ) " -# A few C++ source files are written to srcdir. -# Other than that, the ebuild shall be fit for out-of-source build. -DISTUTILS_IN_SOURCE_BUILD=1 - distutils_enable_tests pytest pkg_setup() { @@ -256,6 +252,8 @@ python_compile_all() { } src_test() { + mkdir build || die + ln -s "${WORKDIR}/freetype-${FT_PV}" build/ || die virtx distutils-r1_src_test } @@ -272,7 +270,6 @@ python_test() { grep -v system_freetype "${BUILD_DIR}"/setup.cfg \ > "${BUILD_DIR}"/test-setup.cfg || die local -x MPLSETUPCFG="${BUILD_DIR}"/test-setup.cfg - ln -s "${WORKDIR}/freetype-${FT_PV}" "${BUILD_DIR}" || die distutils-r1_python_compile -j1 --build-lib="${BUILD_DIR}"/test-lib local -x PYTHONPATH=${BUILD_DIR}/test-lib:${PYTHONPATH} -- cgit v1.2.3