dev-python/zope-schema: Use distutils_write_namespace

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-04-11 20:43:56 +02:00
parent 6ee56f868d
commit e62b3abda8

View File

@@ -48,11 +48,6 @@ python_compile() {
python_test() {
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
# this is needed to keep the tests working while
# dev-python/namespace-zope is still installed
cat > zope/__init__.py <<-EOF || die
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
EOF
distutils_write_namespace zope
eunittest
rm zope/__init__.py || die
}