summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-11 20:41:24 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-11 21:58:43 +0200
commit4307ae5047240a1a5c4f5618624ca6bc496485e9 (patch)
treead6d501787ff92e0dd404aebc5b3c3ca94401637 /dev-python/ruamel-yaml
parentdistutils-r1.eclass: Bump min. dependency versions (diff)
downloadgentoo-4307ae5047240a1a5c4f5618624ca6bc496485e9.tar.gz
gentoo-4307ae5047240a1a5c4f5618624ca6bc496485e9.tar.bz2
gentoo-4307ae5047240a1a5c4f5618624ca6bc496485e9.zip
dev-python/ruamel-yaml: Use distutils_write_namespace
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/ruamel-yaml')
-rw-r--r--dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild5
1 files changed, 1 insertions, 4 deletions
diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild
index 004d9aa196d3..a5c9a8fbd528 100644
--- a/dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild
+++ b/dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild
@@ -52,9 +52,6 @@ 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
}