From b711a2572cd074ebb71c58e934fa82d7e19802d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 10 Apr 2022 11:46:03 +0200 Subject: [PATCH] dev-python/ruamel-std-pathlib: Use distutils_write_namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild b/dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild index 7ebe0572a78b5..ada76ed82820a 100644 --- a/dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild +++ b/dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild @@ -30,11 +30,6 @@ python_compile() { } python_test() { - # this is needed to keep the tests working while - # dev-python/namespace-ruamel is still installed - cat > "${BUILD_DIR}/install$(python_get_sitedir)"/ruamel/__init__.py <<-EOF || die - __path__ = __import__('pkgutil').extend_path(__path__, __name__) - EOF + distutils_write_namespace ruamel epytest - rm "${BUILD_DIR}/install$(python_get_sitedir)"/ruamel/__init__.py || die }