dev-python/ruamel-std-pathlib: Use distutils_write_namespace

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-04-10 11:46:03 +02:00
parent 157dbddd0d
commit b711a2572c

View File

@@ -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
}